Authorize.net won't ever allow you to refund a transaction that was submitted the same day. Writing a test that creates a transaction and then refunds it, therefore, is tough.
I couldn't find a way to do it through the API so:
Can I ask Authorize.net to "settle" a test transaction?
Or .. What's the right way to do this?
Test Mode allows you to test your connection to the payment gateway without actually authorizing or charging real credit cards or bank accounts. Transactions submitted while your account is in Test Mode are not stored by the payment gateway and will not be viewable in search results or reports.
When the merchant captures the transaction, Authorize.net settles the transaction within 24 hours. After settlement completes, the acquiring bank deposits the captured funds into the merchant's bank account.
Captured/Pending Settlement — Transactions with this status have been approved and captured, and will be picked up and sent for settlement at the transaction cut-off time. Could Not Void — Transactions with this status experienced a processing error during a payment gateway generated void.
Settlement is a batch operation that occurs once a day starting after the transaction cut-off time specified in the merchant interface. You must wait until settlement is complete. In the sandbox, there is no way for a developer to force settlement.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With