是的,你可以通過結算和送貨地址信息來源令牌reques,然後將這個預填充形式:
<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>YOUR_LOGIN_ID</name>
<transactionKey>YOUR_TRANSACTION_KEY</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>authCaptureTransaction</transactionType>
<amount>20.00</amount>
<billTo>
<firstName>Ellen</firstName>
<lastName>Johnson</lastName>
<company>Souveniropolis</company>
<address>14 Main Street</address>
<city>Pecan Springs</city>
<state>TX</state>
<zip>44628</zip>
<country>USA</country>
</billTo>
<shipTo>
<firstName>China</firstName>
<lastName>Bayles</lastName>
<company>Thyme for Tea</company>
<address>12 Main Street</address>
<city>Pecan Springs</city>
<state>TX</state>
<zip>44628</zip>
<country>USA</country>
</shipTo>
</transactionRequest>
<hostedPaymentSettings>
<setting>
<settingName>hostedPaymentBillingAddressOptions</settingName>
<settingValue>{"show": true, "required":true}</settingValue>
</setting>
<setting>
<settingName>hostedPaymentButtonOptions</settingName>
<settingValue>{"text": "Pay"}</settingValue>
</setting>
<setting>
<settingName>hostedPaymentReturnOptions</settingName>
<settingValue>{"url":"https://www.mystore.com/good","urlText":"Continue","cancelUrl":"https://www.mystore.com/cancel","cancelUrlText":"Cancel"}</settingValue>
</setting>
<setting>
<settingName>hostedPaymentShippingAddressOptions</settingName>
<settingValue>{"show": true, "required":true}</settingValue>
</setting>
</hostedPaymentSettings>
</getHostedPaymentPageRequest>
是的,你也可以使用XML創建客戶資料/沒有整合SDK的CURL。
我用這種方法發現的問題是,客戶可以更改地址,一旦它在結帳表單中預先填充。我根據送貨地址計算銷售稅,並且在已經應用稅款後地址發生變化時導致問題。似乎沒有辦法通過地址,但沒有在結帳表單中提供用於編輯的地址。請參閱[此帖子](https://community.developer.authorize.net/t5/Integration-and-Testing/Accept-Hosted-and-Sales-Tax-calculation/td-p/59525)。 – showdev