pg_payment_id or by pg_order_id. If pg_payment_id is passed, pg_order_id is ignored. If several payments have the same pg_order_id, the latest one is returned.pending or process, or when a response was lost.pg_payment_id as a number: a string returns 9999.| Field | What it shows |
|---|---|
pg_status | Result of this request: ok, or pending while the payment waits for 3DS authentication. error means that the request itself failed (see «Errors»). |
pg_payment_status | Status of the payment: new, waiting, process, success, error. |
pg_captured | 1: the amount is captured, 0: the amount is only blocked (two-step payment before the clearing) or released. |
pg_clearing_amount | Captured amount. |
pg_refund_amount | Total returned to the client as a negative number: refunds plus the released part (cancel, or the rest after a partial clearing). |
pg_refund_payments, pg_revoked_payments | Refund and cancel operations of the payment. |
pg_payment_status = success: check pg_captured, pg_refund_amount and the lists of operations.200; error responses are not signed.pg_error_code | When | What to do |
|---|---|---|
1200 | Neither pg_payment_id nor pg_order_id is passed. | Pass one of them. |
11068 | The payment is not found: wrong ID or order ID, or the payment belongs to another merchant. | Check the request. |
9999 | pg_payment_id is passed as a string in JSON, or an internal error occurred. | Pass pg_payment_id as a number; repeat the request later. |
pg_sig is calculated with the secret key test_secret_key.