It is a good idea to create an IPN listener page on your website and then specify the URL of the listener page in a "Settings → API" section. It is important to note that you should use only HTTPS URL. Cryptopay then sends a secure FORM POST containing payment information to the URL of all transaction-related events. The IPN listener detects and processes callbacks using your backend processes.
The IPN listener page contains a custom script or program that waits for the messages, validates them with Cryptopay, and then passes them to various backend applications for processing.
Each callback request contains a
This header contains the hex encoded SHA256 HMAC signature of the raw callback body, computed using your callback Secret as the key.
You receive the callback
You use SHA256 for hashing its body with your callback Secret
X-Cryptopay-Signature value to the hash you've got after hashing callback body
Every new callback request will have a new value of the
X-Cryptopay-Signature header. Make sure you are comparing the hash with the right header.
Your callback Secret is available in the "Settings → API" section.
Cryptopay IPN server is expecting to get a 200 OK response code from you. If the response code is different to 200 OK, we will resend callbacks.