I’m attempting to test Accept Hosted payment pages with my sandbox. For this, I’m using the GetAnAcceptPaymentPage from the C# sample code application to generate a token string for a payment, having first edited the RunMethod function in SampleCode.cs to specify the apuLoginId and transactionKey for my sandbox, and setting $1.00 as the amount. I’m then posting the returned token string to https://test.authorize.net/payment/payment with a “token” form element containing that string. This much appears to be working, and I do get a payment page showing the $1.00 amount. However, no matter what values I enter onto that payment page, pressing the “Pay” button just shows “The transaction has been declined.” in red text at the bottom of the form. I’ve confirmed that my sandbox is set to “Live” mode, and have looked at the following link to use what I believe should be valid values for testing: https://developer.authorize.net/hello_world/testing_guide/. I'm hoping someone can tell me why I can't get any result other than "The transaction has been declined".
Edit: I tried to include a screenshot showing the form values, but the forum won't accept it, so here are the values as text:
Amount: $1.00
Card #: 5424 0000 0000 0015
Exp date: 08/18
Card code: 900
First name: David
Last name: Tester
Country: USA
ZIP: 46214
Address: 123 Test St
City: Indianapolis
State: IN
Phone: 952-925-9252
04-04-2018 06:13 AM - edited 04-04-2018 06:22 AM
Hi @DaisCSU
Please check your Fraud IP settings which be blocking IPs .
Thanks
Anurag
01-25-2019 12:14 PM
Hi Anurag,
Thank you for the advice, that was exactly what was happening! We don't have blocked IPs configured, but we had several of our server IPs enabled in the Allowed API list in AFDS.
According to the merchant interface, these transactions are being submitted by private IPs (examples below). Assuming these are internal A.N addresses, would you know if there is a standard range of these IPs, in case our department wishes to continue to allow Authorized API IP Addresses in AFDS in conjunction with Accept Hosted?
Thank you again for your prompt help, and in advance for your thoughts.
Dais
Customer IP: 10.141.8.50
Customer IP: 10.141.8.51
01-29-2019 07:46 AM