pg_result_url, pg_check_url, pg_success_url, pg_failure_url) or set them in the merchant settings: a URL from the request takes priority.pg_post_link in every payout request.| Callback | URL | When | Signed with | Delivered when | Retries |
|---|---|---|---|---|---|
| Result notify | pg_result_url | The payment is final: successful or failed. | payment secret key | HTTP 2xx | after 15 min, then twice every 30 min |
| Check request | pg_check_url | Before the money is charged, only if Freedom Pay enabled the check. | payment secret key | — | no |
| Redirect back | pg_success_url, pg_failure_url | The browser of the client returns to your site after the payment. | payment secret key, depends on the payment page | — | no |
| Payout notify | pg_post_link | The payout is final: successful or failed. | payout secret key | HTTP 200 or <pg_status>ok</pg_status> | about every 4 min, 3 attempts in total |
| Card saving notification | pg_post_link of Save card, Save card without a charge, Save card for payouts | The card is saved (for payouts: saved or not). | payment secret key | — | no: sent once |
pg_request_method of the payment request, or the method from the merchant settings, POST by default:POST: the fields in the body, application/x-www-form-urlencoded.GET: the fields in the query string.XML: POST with one field pg_xml, an XML document with the root request.POST with one field pg_xml, an XML document with the root response.GET or a form submitted by the browser.pg_sig, the random string is pg_salt: see «Signature» in Merchant API Overview.https://merchant.example.com/payment/result → result. A URL ending with / gives an empty script name.pg_sig, including your own parameters and the parameters of the query string of your URL.pg_order_id, the amount and the currency.pg_payment_id only once, and give the same answer.