To configure your notification URL, please send your endpoint address along with your merchant and store information to
technical.support@qfpay.com.- Payments (
"notify_type": "payment") - Refunds (
"notify_type": "refund")
Overview
When a payment or refund is completed, QFPay will POST a JSON-formatted notification to the merchant-defined callback URL.Notification Rules
- Only successful payments and refunds will trigger a notification.
- Please register your notification endpoint via email to
technical.support@qfpay.com. Our team will configure it for you. - Merchants must validate the notification using the signature verification process below. After successful verification, return:
- HTTP Status Code:
200 OK - Response Body:
SUCCESS
- HTTP Status Code:
- If the expected response is not received, QFPay will retry the callback at the following intervals:
- 2 minutes → 10 minutes → 10 minutes → 60 minutes → 2 hours → 6 hours → 15 hours
- Retry stops after receiving
200 OKandSUCCESS
- One
app_code+client_keypair can only be bound to one notification URL. Agents should use a shared endpoint for sub-merchants. - Method:
POST
Content-Type:application/json
Allowed Ports:80and443only (for security)
Signature Verification
The verification process differs from regular API requests.Steps
- Extract the value from the
X-QF-SIGNheader. - Concatenate the raw request body (JSON string) + your
client_key. - Generate an MD5 hash of this combined string.
- If the hash matches the
X-QF-SIGNvalue, the message is valid. Return200 OKwith bodySUCCESS.
Signature Example
Python
Notification Response Example
Response Field Reference
Cancel Field Definitions
Notification IP Addresses
Ensure your server allows POST requests from:13.228.112.11518.138.115.4718.166.202.92

