Hi all,
I faced some problems when trying to use ACCEPT HOSTED .
I followed the github here: https://github.com/AuthorizeNet/accept-sample-app
And found that it didn't work at all.
What i did is as follows:
After logined, when i clicked button 'Hosted Pay', It just showed me "Missing or invalid token.".
01-18-2017 03:26 AM - edited 01-18-2017 03:31 AM
Hello @tblsandbox01
This is the correct method to obtain an Accept Hosted payment form token (not a customer profile id or token).
<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>API_LOGIN</name> <transactionKey>TRANSACTION_KEY</transactionKey> </merchantAuthentication> <transactionRequest> <transactionType>authCaptureTransaction</transactionType> <amount>20.00</amount> </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> </hostedPaymentSettings> </getHostedPaymentPageRequest>
Richard
01-20-2017 11:23 AM
Thank you very much, @RichardH, it works now.
However, i have another question on using ACCEPT HOSTED
01-22-2017 01:31 AM
Hello @tblsandbox01
Accept Hosted does not work with ARB, but we do offer Accept Customer, hosted forms for managing customer profiles. You can learn more about using these forms at http://developer.authorize.net/api/reference/features/customer_profiles.html near the bottom.
Richard
01-23-2017 09:52 AM