pg_recurring_start = 1 and pg_recurring_lifetime in Create payment. Recurring payments are available after Freedom Pay enables them for the merchant: contact your account manager.pg_order_id before repeating the request.pg_result_url.pg_status | Meaning | Next step |
|---|---|---|
ok | The payment is successful. | To return the money, call Refund payment. |
error | The request is rejected or the payment is declined. | 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 |
|---|---|---|
94031 | A parameter is missing or invalid, or a recurring profile with this ID does not exist. | Fix the request. |
11005 | pg_amount is missing, is not a number, is less than 0.01 or more than 99999999. | Fix the amount. |
1100 | The signature is missing or invalid. | Check the signature: see Merchant API Overview. |
340 | The recurring profile belongs to another merchant. | Check pg_recurring_profile and pg_merchant_id. |
10000 | The recurring profile has expired, or a temporary error occurred. | If pg_recurring_profile_expiry_date has passed, create a new profile with the next payment through Create payment. Otherwise repeat the request later. |
91011 | The first payment of the profile is refunded in full. | Create a new profile with the next payment through Create payment. |
| Other codes | The payment system declined the payment. | See Error codes. |
pg_sig is calculated with the secret key test_secret_key.