pg_auto_clearing = 0) that was blocked at authorization.pg_status = ok means that the request is processed, not that the amount is captured: check pg_clearing_amount in the response. 0 means that nothing is captured: the amount is greater than the payment amount, the payment is not successful or cancelled, or the payment system declined the clearing.pg_status | pg_clearing_amount | Meaning | Next step |
|---|---|---|---|
ok | greater than 0 | The amount is captured. | To return the money later, call Refund payment. |
ok | 0 | Nothing is captured. | Check the payment with Get payment status. |
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_error_code | When | What to do |
|---|---|---|
340 | The payment is not found, is not paid yet or is not a card payment. | Check pg_payment_id. |
1100 | The signature is missing or invalid. | Check the signature: see Merchant API Overview. |
| Other codes | Other errors of the request. | See Error codes. |
pg_sig is calculated with the secret key test_secret_key.