- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue with Transaction ID in Test Mode for authOnlyTransaction
net\authorize\api\contract\v1\CreateTransactionResponse Object
As shown, the transId is 0 despite the transaction being approved. Consequently, when I attempt to capture this transaction using priorAuthCaptureTransaction, I receive the following error due to the invalid transaction ID:
net\authorize\api\contract\v1\CreateTransactionResponse Object
Could you please suggest a proper way to generate a valid transaction ID in test mode so I can successfully capture the authorized transaction?
07-03-2024 03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ashwini nehe
It looks like you're encountering an issue where the transaction ID returned for the `authOnlyTransaction` is `0`, which is causing problems for the `priorAuthCaptureTransaction`.
Here’s a brief solution to this problem:
**To fix this issue, follow these steps:**
1. **Verify Test Mode Settings:** Ensure you are using the correct test mode settings and the sandbox environment. The `authOnlyTransaction` should work properly in the sandbox environment.
2. **Check API Credentials:** Make sure your API credentials (API Login ID and Transaction Key) are correct and configured for the sandbox environment.
3. **Use a Different Test Card Number:** Sometimes using different test card numbers provided by Authorize.Net can help generate valid transactions.
4. **Contact Authorize.Net Support:** If the above steps don’t resolve the issue, contact Authorize.Net support for assistance, as there might be a specific issue with the sandbox environment.
By following these steps, you should be able to generate a valid transaction ID for further testing.
07-04-2024 09:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @maverickwhites
Thanks for your reply.
I found the solution to our issue. Although we are using a sandbox account, we need to perform transactions in live mode instead of test mode. Authorize.net has a provision that allows for testing with test cards in a sandbox account using live mode. This generates valid transaction IDs and settles transactions accordingly.
Thank you for your assistance.
Best regards,
Ashwini Nehe
07-11-2024 01:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since test mode doesn't capture funds, you can simulate the capture process by simply verifying the authorization response.
Check the response for responseCode 1 and authCode to confirm successful authorization.
08-21-2024 01:53 PM

