Skip to main content

WAP Payment (Mobile Browser)

WAP (or H5) payment allows merchants to trigger wallet payment flows from mobile browsers such as Chrome or Safari.

note

For WAP/H5 payments, merchants are advised to guide users to open the payment link in a mobile browser such as Chrome, Safari, or Edge. Due to uncontrollable restrictions in social apps like WhatsApp, Facebook Messenger, or WeChat, QFPay cannot guarantee that these apps can automatically invoke external wallet apps. For example, Alipay cannot be automatically opened within the WeChat app — this is a browser limitation beyond QFPay's control.


HTTP Request

POST ../trade/v1/payment

You can find the corresponding pay_type for each wallet in the table below:

PayTypeDescription
800212WeChat H5 Payment — see WeChat H5 Payment
801512Alipay HK WAP Payment — see Alipay H5 Payment
800712UnionPay WAP Payment
805812PayMe WAP Payment

Request Parameters

NameParameterRequiredTypeDescription
Transaction AmounttxamtYesInt(11)Amount in smallest unit (e.g. 100 = $1). Recommended to be > 200 to avoid risk control failures.
CurrencytxcurrcdYesString(3)Transaction currency. See Currency List.
Payment Typepay_typeYesString(6)e.g. PayMe WAP Payment = 805812
Order Numberout_trade_noYesString(128)Unique order number per merchant account across all payment/refund requests.
Transaction TimetxdtmYesString(20)Format: YYYY-MM-DD hh:mm:ss
Product Namegoods_nameNoString(64)Product name/identifier. Max 20 alphanumeric chars or Chinese in UTF-8.
QFPay Merchant IDmchidNoString(16)Assigned by QFPay. Required if present in backend configuration.
Device IDudidNoString(40)Unique device ID shown in merchant dashboard.
Redirect URLreturn_urlNoString(255)URL the user is redirected to after payment completes.
Notification URLnotify_urlNoString(255)URL to receive asynchronous notifications after payment.

Response Parameters

NameParameterTypeDescription
Payment Typepay_typeString(6)e.g. PayMe WAP Payment
System TimesysdtmString(20)YYYY-MM-DD hh:mm:ss. Used as settlement cutoff.
Transaction TimetxdtmString(20)As sent in request.
Response MessageresperrString(128)Description or status message.
AmounttxamtInt(11)Transaction amount.
Debug InforespmsgString(128)Internal response/debug message.
External Order No.out_trade_noString(128)Returned for reference.
QFPay Order No.syssnString(40)QFPay system-generated order number.
Response CoderespcdString(4)0000 = success, 1143/1145 = retry with status check, others = failure. See Status Codes.
Payment URLpay_urlString(512)Redirect URL (mobile browser), or QR code display URL (PC browser).

Summary

  • Suitable for mobile browser environments (not within WeChat or social apps).
  • Ensure the return_url and notify_url are set correctly if redirection or backend notification is required.
  • Use the pay_url to display the QR code or redirect the user to complete the payment.
  • Consider polling or transaction enquiry APIs to confirm payment result if response code is not 0000.