Integration Flow
Flow Summary
- Create a Payment Intent via QFPay API.
- Initialise the SDK using
QFpay.config(). - Render payment UI (card form or wallet interface).
- Collect customer payment details.
- Confirm payment using SDK confirmation methods.
Supported Payment Methods
The Element SDK supports:- Alipay (Mainland China & Hong Kong)
- WeChat Pay
- UnionPay / QuickPass
- FPS
- PayMe
- Visa / Mastercard
- Apple Pay
- Card Pre-authorisation
Step 1: Load SDK
Include the SDK script in your page:Step 2: Initialise SDK
Returns the global
qfpay object.
Step 3: Create Payment Intent (Backend)
EndpointPOST /payment_element/v1/create_payment_intent
Headers
Parameters
Response
Step 4: Retrieve Payment Intent (Frontend)
Step 5: Configure Appearance (Optional)
Step 6: Render Payment UI
Wallet + Card Interface
Card Form Only
Step 7: Initiate Payment
Card Payment
Multi-Wallet Payment
Step 8: Confirm Payment
Card / Apple Pay
Wallet Payments
Step 9: Query Transaction
Important Notes
Payment intent expiry:
• Production: 2 years
• Sandbox: 7 days
• Production: 2 years
• Sandbox: 7 days

