What exactly are these endpoints and how do I know where to find them?
Please and thanks!
What exactly are these endpoints and how do I know where to find them?
Please and thanks!
Try the following:
Sandbox URL: https://apitest.authorize.net/json/v1/request.api
Production URL: https://api.authorize.net/json/v1/request.api
Thanks for the info. I’ve updated the credentials with this information. I cannot process a payment with this though. When sending out a $1.01 invoice and trying to pay with a credit card I keep getting a:
Authorize.Net AIM: There was an error processing your payment. Please try again later.
I’ve verified that my Authorize.NET is using the correct Transaction Key and API Login ID.
What should I do next?
Can you check the API transaction log in your Authorize.net account for details about the error.
Thanks
Where do I find the API transaction log?
I’m not sure, I haven’t been able to find it.
If you’re self hosting please check storage/logs/laravel.log for more details about the error.
[2015-12-01 02:30:36] production.ERROR: Payment Error [Uncaught]: Omnipay\Common\Exception\InvalidResponseException [0] : /home/newleaf/public_html/invoices/vendor/omnipay/authorizenet/src/Message/AIMResponse.php [Line 20] => Invalid response from payment gateway
{“context”:“PHP”,“user_id”:1,“user_name”:“Chris Carvache”,“url”:“https://invoices.newleafwebsolutions.com/payment/RZQVlfKeocFOiylDCbNsDBl3WkyFCEg3",“user_agent”:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36”,“ip”:“68.230.149.83”,“count”:1}
It looks like every time I try to run a transaction I get this error.
The key part of the error is “Invalid response from payment gateway”. You can try adding dd($data) to the top of the __construct function in vendor/omnipay/authorizenet/src/Message/AIMResponse.php to see the response.
If you haven’t already I’d suggest contacting Authorize.net to see if they can help debug from their side.
The response I get is this…
EntityBody {#685 ▼
#contentEncoding: false
#rewindFunction: null
#stream: stream resource @267 ▼
wrapper_type: “PHP”
stream_type: “TEMP”
mode: “w+b”
unread_bytes: 0
seekable: true
uri: “php://temp”
options: []
}
#size: null
#cache: array:9 [▼
“wrapper_type” => “PHP”
“stream_type” => “TEMP”
“mode” => “w+b”
“unread_bytes” => 0
“seekable” => true
“uri” => “php://temp”
“is_local” => true
“is_readable” => true
“is_writable” => true
]
#customData: array:1 [▼
“default” => true
]
}
Thanks, I don’t see anything helpful there.
Have you had a chance to follow up with Authorize.net?
Sorry for the delayed reponse, if you still haven’t gotten it working please try with the following values:
Live Endpoint: https://secure2.authorize.net/gateway/transact.dll
Developer Endpoint: https://test.authorize.net/gateway/transact.dll
For reference, the correct values are now:
Live Endpoint: https://api.authorize.net/xml/v1/request.api
Developer Endpoint: https://apitest.authorize.net/xml/v1/request.api
Supported by Invoice Ninja and Event Schedule