This page describes how QFPay sends asynchronous notifications related to the subscription system. This includes:Documentation Index
Fetch the complete documentation index at: https://sdk.qfapi.com/llms.txt
Use this file to discover all available pages before exploring further.
- Token creation results
- Subscription state changes
- Recurring billing results
How to Configure Notification URL
To set your webhook endpoint, please email your webhook URL along with your merchant ID and store ID to: technical.support@qfpay.com
Token Creation Notification
Triggered after a payment token is created via Element SDK.Notification Fields
| Field | Description |
|---|---|
userid | QFPay Store ID |
notify_type | Notification type. Value: payment_token |
event | One of: NEW, MATCH, CONFLICT |
tokenid | ID of the generated payment token |
token_expiry_date | Expiration date of the token |
cardcd | Masked card number |
card_scheme | Card scheme (e.g. VISA, MASTERCARD) |
respcd | Response code. 0000 = success |
respmsg | Message (e.g. “success”) |
sysdtm | System timestamp |
customer_id | Linked customer ID (if available) |
token_reason | Reason for tokenisation |
token_reference | Token reference in system |
Example
Subscription Status Change
Sent when the status of a subscription changes.Notification Fields
| Field | Description |
|---|---|
notify_type | Notification type. Value: subscription |
subscription_id | Subscription identifier |
state | Current state (e.g. ACTIVE, COMPLETED, INCOMPLETE) |
sysdtm | System timestamp |
Example
Subscription Payment Result
Sent when a billing attempt occurs (either success or failure).Notification Fields
| Field | Description |
|---|---|
notify_type | Value: subscription_payment |
subscription_id | Subscription ID |
subscription_order_id | Format: sub_ord_{subscription_id}_{0001} |
respcd | Response code. 0000 = success |
respmsg | Response message |
syssn | System transaction ID |
txdtm | Transaction timestamp |
txamt | Transaction amount |
txcurrcd | Currency |
customer_id | Customer ID |
product_id | Product ID(s), comma-separated if multiple |
cardcd | Masked card number |
card_scheme | Card scheme (present if success) |
current_iteration | Billing iteration number |

