Hi Developers,
We’re encountering a strange issue with the Authorize.Net API in versions higher than 1.9.6 and are looking for suggestions or insights from anyone who has faced something similar.
When we include the orderType object in the transactionRequest, the API throws an unexpected error during payment processing. However:
Our system relies on orderDescription for order verification after payment. Without it, we’d need to refactor our workflows, which isn’t ideal.
We have temporarily reverted to version 1.9.6 in our application to maintain functionality. However, we aim to upgrade to a newer version in our next release and we’d appreciate any insights, solutions, or even alternate approaches you’ve implemented in similar situations.
Thanks in advance!
12-18-2024 06:07 AM
The issue you're encountering with the orderType object in Authorize.Net API versions above 1.9.6 appears to be related to either a breaking change in the API or a misalignment in how the orderType object is handled. Below is a step-by-step approach to address this issue:
Check API Documentation for Updates:
Review the Authorize.Net API release notes and documentation for versions above 1.9.6 to identify any changes to the orderType structure or behavior. Look specifically for updates regarding transactionRequest, orderType, orderDescription, or invoiceNumber.
Validate API Request Payload:
Use tools like Postman or Fiddler to inspect the full request payload being sent to Authorize.Net. Confirm that:
Enable Detailed Logging:
Enable verbose logging on your server to capture the exact error message and stack trace when the API throws an error. This may provide insights into the root cause.
Patch for Missing Fields Without orderType:
If you cannot use orderType and must rely on orderDescription and invoiceNumber, consider adding them as top-level fields in the transactionRequest payload (if the API allows it). For example:
Contact Authorize.Net Support:
If you’ve verified that your implementation is correct and still experience the issue, reach out to Authorize. Net’s technical support with:
Test with a Newer SDK or Library Version:
If you’re using an Authorize.Net SDK or library, ensure it is updated to its latest version. Occasionally, SDK updates include fixes for API-related bugs.
Temporary Downgrade with Conditional Logic:
Until the issue is resolved, implement a temporary logic to use version 1.9.6 when the orderType is required. Use a feature flag to switch to the newer version when the API behavior stabilizes or when a fix is released.
Monitor Known Issues:
Check community forums or the Authorize.Net GitHub repository (if available) for reported issues similar to yours. It could be a recognized bug awaiting resolution.
12-22-2024 01:59 AM
If you're encountering an unexpected error with orderType in Authorize.Net API versions above 1.9.6, consider these steps:
12-23-2024 07:21 PM