pg_redirect_url. Redirect the client to it: the client chooses the payment method and pays on the page.pg_result_url, see Result notify. After the payment the client is returned to pg_success_url or pg_failure_url, see Redirect back.pg_ prefix are passed back to pg_check_url and pg_result_url unchanged. Give them unique names that do not start with pg_.pg_template./payment.php with GET or POST: the client goes to the payment page at once. Sign such a request with the script name payment.php; errors are shown to the client as a page.pg_recurring_start — profile creation, pg_recurring_lifetime — validity period. If pg_recurring_lifetime exceeds the card's expiration date, the profile remains active until the card expires.pg_status | Meaning | Next step |
|---|---|---|
ok | The payment is created. | Redirect the client to pg_redirect_url and wait for the result at pg_result_url. |
error | The request is rejected. | See «Errors» below. |
200; the error is returned in pg_error_code and pg_error_description. Error responses are not signed.pg_sig is calculated with the secret key test_secret_key.