将自定义属性传递到authorize.net签出页面



我们将为authorize.net商家构建一个门户。此门户中的页面将有一个按钮,该按钮将导航到authorize.net托管的签出页面。

是否可以将自定义元数据传递到付款完成后将存储在authorize.net中的页面?目标是允许商家在我们的系统中参考客户的身份。

为此目的设计的一个Authorize.net Get-Accept Hosted参数将是refId(字符串,最多20个字符(。这是商家为请求分配的参考ID。如果包含在请求中,则该值将包含在响应中。例如,

{
"getHostedPaymentPageRequest": {
"merchantAuthentication": {
"name": "LOGIN",
"transactionKey": "TRANSACTION_KEY"
},
"refId": "123456",       

"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "20.00",
"profile": {
"customerProfileId": "123456789"
},
"customer": {
"email": "ellen@example.com"
},
"billTo": {
"firstName": "Ellen",
"lastName": "Johnson",
"company": "Souveniropolis",
"address": "14 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "US"
}
},
"hostedPaymentSettings": {
"setting": [{
"settingName": "hostedPaymentReturnOptions",
"settingValue": "{"showReceipt": true, "url": "https://example.com/receipt", "urlText": "Continue", "cancelUrl": "https://example.com/cancel", "cancelUrlText": "Cancel"}"
}, {
"settingName": "hostedPaymentButtonOptions",
"settingValue": "{"text": "Pay"}"
}, {
"settingName": "hostedPaymentStyleOptions",
"settingValue": "{"bgColor": "blue"}"
}, {
"settingName": "hostedPaymentPaymentOptions",
"settingValue": "{"cardCodeRequired": false, "showCreditCard": true, "showBankAccount": true}"
}, {
"settingName": "hostedPaymentSecurityOptions",
"settingValue": "{"captcha": false}"
}, {
"settingName": "hostedPaymentShippingAddressOptions",
"settingValue": "{"show": false, "required": false}"
}, {
"settingName": "hostedPaymentBillingAddressOptions",
"settingValue": "{"show": true, "required": false}"
}, {
"settingName": "hostedPaymentCustomerOptions",
"settingValue": "{"showEmail": false, "requiredEmail": false, "addPaymentProfile": true}"
}, {
"settingName": "hostedPaymentOrderOptions",
"settingValue": "{"show": true, "merchantName": "G and S Questions Inc."}"
}, {
"settingName": "hostedPaymentIFrameCommunicatorUrl",
"settingValue": "{"url": "https://example.com/special"}"
}]
}
}
}

最新更新