pg_card_token.pg_user_id: pass the token with the same pg_user_id in later requests instead of card details.pg_3ds = 1 is returned, the client completes 3DS, then call Save card: complete 3DS: the token is returned there.| Response | Meaning | Next step |
|---|---|---|
pg_status = ok, pg_3ds = 0 | The card is saved. | Store pg_card_token. |
pg_status = ok, pg_3ds = 1 | 3DS is required. | Open pg_3d_acsurl for the client, then call Save card: complete 3DS. |
pg_status = error | The request is rejected. | See the table «Errors». |
200; the error is returned in pg_error_code and pg_error_description.pg_error_code | When | What to do |
|---|---|---|
94031 | A field is not passed or has an invalid value, for example pg_card_cvc, or pg_card_token is not found. | Fix the request. |
1100 | The signature is missing or invalid. | Check the signature with the secret key. |
1101 | pg_merchant_id is not found. The response is not signed. | Check the merchant ID. |
10000 | The card cannot be saved. | Repeat the request later. |
| Other codes | The payment system declined the card. | See Error codes. |
pg_sig is calculated with the secret key test_secret_key.