Integrate the payment request APIs in 3 simple steps
X-BUSINESS-API-KEY: meowmeowmeow
amount
and currency
. Remember to include header Content-Type: application/x-www-form-urlencoded
Parameter | Description | Example |
---|---|---|
amount | Amount related to the payment | 2500.00 |
payment_methods[] | Choice of payment methods you want to offer the customer | paynow_online, card, wechat, alipay, grabpay, fave_duit, shopback, atome (Local Payment Methods) (Cross-border Payment Methods) |
currency | Currency related to the payment | SGD |
Buyer’s email | foo@example.com | |
purpose | Purpose of the Payment request | FIFA 16 |
name | Buyer’s name | John Doe |
reference_number | Arbitrary reference number that you can map to your internal reference number. This value cannot be edited by the customer | XXXX123 |
redirect_url | URL where we redirect the user after a payment. Query arguments reference (payment request id) and status are sent along | https://example.com/callback |
webhook | URL where our server does a POST request after a payment is completed | https://example.com/webhook |
allow_repeated_payments | If set to true, multiple payments can be paid on a payment request link. Default value is false | false |
expiry_date | Time after which the payment link will be expired (time in SGT). Applicable for repeated payments. Default is Null | 2021-02-02 01:01:01 |
payment_request_id
and URL values to the client. There are 2 ways to present the checkout UI: “Redirect to HitPay checkout” or “Present Drop-In UI.”
Parameter | Description | |
---|---|---|
payment_id | Payment ID | |
payment_request_id | Payment request ID | |
phone | Buyer’s phone number | |
amount | Amount related to the payment | |
currency | Currency related to the payment | |
status | Payment status (completed / failed) | |
reference_number | Arbitrary reference number mapped during payment request creation | |
hmac | Message Authentication code of this webhook request |
paynow_online
as the payment method, set generate_qr
to true
, and manage expiration settings if needed. The response will include a qr_code_data
object, which contains the data to be converted into a scannable QR code (qr_code
).
Example Response for Native QR Code Payment Request
Webhook Signature Mismatch?
Facing Invalid Business API Key Error
Product Checklist
Why does my charges `webhook status` show as failed?
3.1.13.32
, 52.77.254.34
54.179.156.147