cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Upgrade Purchases Returning Error

In our system, we have the concept of an upgrade within our system. When a customer of ours purchases a product, they can purchase an upgraded version of the product after the fact. The way we process that is by doing a charge API call to charge them for the first product. When they request an upgrade, we determine the difference in price and charge them that in a second charge API call. 

 

This process works flawlessly when we are using our sandbox credentials but seems to be giving us an error on our production credentials. 

 

'code' 'E00001',
'text' 'An error occurred during processing. Please try again.',

 

Any idea why that could be happening?

 

--

 

API Method Used: Payment Transaction
Programming Language: PHP
SDK Used: PHP
Issue Summary: Upgrade Purchases Returning
Error Message: 2021-04-16 09:01:49 testing.INFO: array (
0
netauthorizeapicontractv1MessagesTypeMessageAType::__set_state(array(
'code' 'E00001',
'text' 'An error occurred during processing. Please try again.',
)),
)

Below is our sample request/payload -
2021-04-16 09:01:49 testing.INFO: array (
'invoiceNumber' '12343455',
'description' 'Enrollment fees.',
'amount' 56.83,
'customer'
array (
'id' 17845,
'firstName' 'MALUC',
'lastName' 'Test',
'email' 'maluctest@testing.com',
'zipCode' '11378',
),
)
2021-04-16 09:01:49 testing.INFO: array (
'dataDescriptor' 'COMMON.ACCEPT.INAPP.PAYMENT',
'dataValue' 'eyJjb2RlIjoiNTBfMl8wNjAwMDUyMEE4ODVEM0RBNjhFNEZCQ0VDRTgyRUU2QjEwOERBQTBDMDk2RjAyMEZCMjlFRTdFRDBEQUEzRDcxQjNBODFDMzAwOEIwMEZBNjlERUJBMkY0NDc0NjczRkJCMUQ1RDY2IiwidG9rZW4iOiI5NjE4NTgxNjc2MzMxMDU0ODA0NjAxIiwidiI6IjEuMSJ9',
)
ref:_00DF07nRI._5004Q2FZEPX:ref

maziz01
Member
1 REPLY 1

Hello @maziz01,

 

In the second charge, are you obtaining a new opaqueData.DataValue? If not, the error could be due to an invalid value in the DataValue field.

 

Maybe a better way would be to create a Customer Payment profile and charge this Payment profile on the subsequent charge.

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor