Can someone provide an example of the order of xml to send for accepted hosts?
We will be using a redirect to the hosted form.
We currently use SIM and my understanding of this new method is as follows:
1) set options ie:
<?xml version="1.0" encoding="utf-8"?> <getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>34RZJpz5M</name> <transactionKey>578k6f7q3BMaTrG5</transactionKey> </merchantAuthentication> <transactionRequest/> <hostedPaymentSettings> <setting> <settingName>hostedPaymentButtonOptions</settingName> <settingValue>{"text": "Submit Payment"}</settingValue> </setting> <setting> <settingName>hostedPaymentStyleOptions</settingName> <settingValue>{"bgColor": "red"}</settingValue> </setting> <setting> <settingName>hostedPaymentOrderOptions</settingName> <settingValue>{"show": true,"merchantName":"Texas Girls Coaches Assoc."}</settingValue> </setting> <setting> <settingName>hostedPaymentReturnOptions</settingName> <settingValue>{"url": "http://tgca_dev.jdoherty.net/php/sadispatch.php?event=renew_ccpost&first_time=init&invid=33:123456:71870:1626,"cancelUrl": "http://tgca_dev.jdoherty.net/php/sadispatch.php?event=renew_ccpost&first_time=tcancel&invid=33:123456:71870:1626", "showReceipt": true}</settingValue> </setting> <setting> <settingName>hostedPaymentPaymentOptions</settingName> <settingValue>{"cardCodeRequired":true,"showCreditCard": true,"showBankAccount":true}</settingValue> </setting> <setting> <settingName>hostedPaymentSecurityOptions</settingName> <settingValue>{"captcha":true}</settingValue> </setting> <setting> <settingName>hostedPaymentBillingAddressOptions</settingName> <settingValue>{"show":true}</settingValue> </setting> <setting> <settingName>hostedPaymentCustomerOptions</settingName> <settingValue>{"showEmail":true,"requiredEmail":true}</settingValue> </setting> </hostedPaymentSettings> </getHostedPaymentPageRequest>
2) Get Token
3) Redirect to https://test.authorize.net/payment/payment
4) The hosted form will then redirect to our relay URL.
Any help greatly appreciated
Jim Doherty
05-31-2019 04:25 AM
Yes, that order looks correct.
https://developer.authorize.net/api/reference/features/accept_hosted.html
06-06-2019 01:48 PM