payment webhook
After transanction is complete, the application should inform FMS so that the eSIM QR profile is assigned to the order. Please refer to /payment/webhook for api details
request
{
"dateTime": 1,
"orderId": "string",
"partnerCode": "string",
"payAmount": 100,
"payCurrency": "USD",
"paypalId": "string",
"type": "payment_intent.succeeded"
}
parameters
dataTimeis the seconds of the transaction time in the transaction timezone.orderIdis theidreturned bypacakge/preOrderPackagetypeis the result of the payment transactionpayCurrency:USD
payment_intent.succeededpayment_intent.payment_failed
Response
code
0:success; 2:Wrong parameters; 1102:Time conversion exception; 9999:Error; 6006:pre-order timeout; 10008: order does not exist; 10009: price inconsistent 3004: order system exception; 3005: qrCode null others: system exception
6006: if the transaction result is notified more than10minutes after preOrder is called, this notificaion is considered timeout.
example:
{
"code": 10008,
"data": null,
"message": "paypal The callback has no order number"
}
{
"code": 6006,
"data": null,
"message": "PreOrder Timeout"
}