This guide is for developers and provide details to integrate online payment functionality through Drop-in from scenarios such as payment subscriptions.
sessionID from payment API.en-US'、'zh-CN')'embedded' or 'fullPage')'UAT' for Sandbox,'HKG_prod' for Production){ type: 'payment_completed', merchantTransID, sessionID }merchantTransID(For future transaction enquiry and refund){ type: 'payment_failed', merchantTransID, sessionID, code, message }merchantTransID、code and message{message}”){ type: 'payment_not_preformed', merchantTransID, sessionID, code, message }merchantTransID and code{ type: 'payment_cancelled', sessionID }result: payment status codemerchantOrderID: To check order statusmerchantTransID: To carry out payment refundsstatus: Order status code, used to update the database order status{
"userInfo": {
"reference": "your_user_reference"
},
"paymentMethod": {
"recurringProcessingModel": "Subscription"
}
}token from either webhook or payment response API.token.value in your system and bind it with userInfo.reference.{
"paymentMethod": {
"token": {
"value": "previously saved token value"
},
"recurringProcessingModel": "Subscription"
}
}merchantTransID to track the order ID of the subsequence payments.captureAfterHours should set to "0" for immediate capturePOST /capture API to perform manual capture.{
"userInfo": {
"reference": "your_user_reference"
}
}userInfo.reference: A unique identifier of the user in your system, used to associate the saved card token.token from either the webhook notification (step 7) or the GET Payment API.token.value in your system and bind it with userInfo.reference.{
"paymentMethod": {
"token": {
"value": "previously saved token value"
}
}
}merchantTransID to track the order ID of the subsequent payments.captureAfterHours should be set to "0" for immediate capture.POST /capture API to perform manual capture.