pg_redirect_url. Show it in an iframe on your page: the frame contains the bank card form, the client pays without leaving your page.pg_payment_route is ignored and the payment opens on the standard payment page, see Create payment.pg_template is passed, the payment opens on the template page, not in the frame, see Create payment with a payment page template.pg_result_url, see Result notify. After the payment the client is returned to pg_success_url or pg_failure_url, see «Return of the client» below.pg_ prefix are passed back to pg_check_url and pg_result_url unchanged. Give them unique names that do not start with pg_.4111111111111111 — success without 3DS, 4916307416334310 — success with 3DS, 5335215945367703 — declined.pg_payment_method and pg_timeout_after_payment are not used in the frame.pg_success_url with pg_order_id, pg_payment_id, pg_salt and pg_sig. pg_sig is calculated with the script name equal to the last segment of the pg_success_url path.pg_failure_url with pg_order_id, pg_failure_code, pg_failure_description and your parameters without the pg_ prefix. These parameters are not signed: confirm the result with pg_result_url or Get payment status.pg_success_url or pg_failure_url is not passed, the URL from the merchant settings is used. If there is none, the result is shown in the frame.pg_success_url_method and pg_failure_url_method.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. | Show pg_redirect_url in an iframe 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.