pg_redirect_url. Redirect the client to it: the client pays by bank card, Apple Pay or Google Pay, as connected for the merchant.pg_template. If the template is enabled for the merchant, pg_template can be omitted; a value passed in the request takes priority.pg_template value is ignored: the template enabled for the merchant is used, or, if there is none, the payment opens on the standard payment page, see Create payment.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_payment_method and pg_timeout_after_payment are not used with a template.pg_payment_route is ignored.pg_lifetime. All attempts belong to one payment with the same pg_payment_id.pg_payment_status = waiting without the decline code of the attempt.pg_result_url: pg_result = 1 after an approved attempt, or pg_result = 0 when pg_lifetime expires without one.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.