You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.1 KiB
4.1 KiB
获取authorization
- {domain}/online/v3/secure-pay
Request
{
"amount": "100",
"callbackUrl": "https://example.com/webhook?transactionNo={transactionNo}&status={status}&amount={amount}&time={time}&reference={reference}¬e={note}",
"currency": "USD",
"description": "029e9b9b0b4e5cae68bf559b6333f466",
"ipnUrl": "https://example.com/webhook",
"merchantNo": "202333",
"note": "029e9b9b0b4e5cae68bf559b6333f466",
"reference": "029e9b9b0b4e5cae68bf559b6333f466",
"settleCurrency": "USD",
"storeNo": "301854",
"terminal": "YIP",
"vendor": "creditcard",
"verifySign": "ece4311b16c46435af3fb974ddbc2d43"
}
Response
- authorization是用来在付款页面调用braintree js sdk,用户填信用卡信息
- HTML付款页面示例
{
"result":
{
"amount": "100.00",
"authorization": "eyJraWQiOiJ6dSIsImFsZyI6IlJTMjU2In0.eyJmbHgiOnsicGF0aCI6Ii9mbGV4L3YyL3Rva2VucyIsImRhdGEiOiJkVnc4amZSc2ZFQVI2VWlyVFBWcVhCQUFFR09OZkVZZmNxVjZyeUttOHU4LzhYVnZzN01Edmt1NzBCQXZxR09zSWZVOVcwT21KNVVWM3N6bHIxekh5K01RMWxQMDZZYnh4Y0Y3cDhnUWVOeUhhaEZNamUxQnBydW5tMVppYjZnWDA3amQiLCJvcmlnaW4iOiJodHRwczovL3Rlc3RmbGV4LmN5YmVyc291cmNlLmNvbSIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsInVzZSI6ImVuYyIsIm4iOiJzUnR5Y0lvcU1aRmVEMGM2bG9VbFZ4NWdoaDlLX0w5bm11dllhdkRVVV9TdTVHRGFmZmt4NGRqM0MzQ2pwRlZMUkFrdXJ4LTYxd0U3ZlJ6RTJLY3F0QlZsdWQxbTdKdXFISVdxU0tPRlNEQkJROFp5TVBIUV9HRktXQjdVZjhWWWtGOGs3M19FWm91Sl9xODhsM2RqeGFucnZkbGdKZ3hGdE5J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ru9f4qAwzSkYCxLSUa0p7U7DdRIldOsw4-svP70-NKLBQ",
"currency": "USD",
"reference": "029e9b9b0b4e5cae68bf559b6333f466",
"timestamp": "2022-10-20T03:54:36Z",
"transactionNo": "302605577756087512"
},
"ret_code": "000100",
"ret_msg": "success"
}
确认付款
- {domain}/creditpay/v3/process
Request
name | value |
---|---|
Credit Card | credit_card |
PayPal | paypal_account |
Venmo | venmo_account |
Google Pay | android_pay_card |
Apple Pay | apple_pay_card |
SAMSUNG Pay | samsung_pay_card |
{
"addressLine1": "123 main st",
"addressLine2": "",
"city": "Hometown",
"country": "United States of America",
"countryCode": "US",
"deviceData": "{\"correlation_id\":\"536e2d7c63f918ae8b2eb0cb5ee1eee3\"}",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"merchantNo": "202333",
"paymentMethod": "credit_card",
"paymentMethodNonce": "tokencc_bf_ks72qn_fwtdcm_56ynkm_ckx8n2_2z2",
"postalCode": "90012",
"state": "CA",
"storeNo": "301854",
"transactionNo": "302607078131745403",
"verifySign": "91a7786e708668ca35a5197bbea237cc"
}
Response
{
"result":
{
"reference": "31d59e06821dbf31e14569f44bac976a",
"amount": "100.00",
"supUserid": "1111",
"transactionNo": "302607078131745403",
"vendorId": "b2sewrxq",
"currency": "USD",
"paymentTime": "2022-10-20T04:19:56Z",
"status": "success"
},
"ret_msg": "success",
"ret_code": "000100"
}