数字钱包支付

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_purchasewithwallet

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8
This API is for Apple Pay and Google Pay, contact us before integrating this API.
Parameters
namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
amountyInt1500in cents
currencyyString(3)CADfor now only CAD supported
walletTypenString(10)“ApplePay” for ApplePay, “GooglePay” for Google Pay
walletDatanStringThe OEM Wallet data is generated by the mobile device authorized wallet
loginNameyString(12)jack123merchant's login name
subjectnString(64)
bodynString(250)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

walletData必须base64编码.
Apple Pay: 请传由passkit生成的Apple payment token.
Google Pay: 请传由Google Pay API生成的payment token(paymentData.paymentMethodData.tokenizationData.token)

Response
namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned
retData contains order infomation:
namerequiredtypesampledescription
payOrderIdyStringSUCCESS or FAIL
mchIdyString
mchOrderNonString
originalOrderIdyStringoriginal pay order id if payType=refund
amountyInt100in cents
currencyyStringCAD
payTypeyStringpay or refund
refundableyInt100in cents
statusyInt22 or 3 means success
invoiceNumyString
paySuccTimeyString2021-04-07 19:44:51
cardNumyString432567******2266
cardTypeyStringV or M
expiryDateyString
authNumyString
transNumyString
channelyStringCC_CAApplePay:CC_CA, GooglePay: CC_CG
captureyStringYalways Y on SUCCESS
上次更新: