Payments Callback
Payment Callbacks
Nuclei (Synapse) also provide option to send a callback once we receive payment confirmation from our partner either success or failure. This will be helpful for merchant to decide if they can proceed for fulfillment of the order or not. To avail this service merchant has to provide preferebly REST API with POST method. The url to be provided in header (X-Callback-Url) of initiate transaction request explained in previous sections.
The request body that nuclei send look like below
{
"merchantPaymentReferenceId": "PAY-123-456",
"merchantOrderId": "ORD-123-456",
"synapsePaymentReferenceId": "SYN-PAY-123-456",
"paymentStatus": "SUCCESS/FAILED"
}