Reply
Member
Posts: 1
Registered: ‎06-23-2021

Error Code: 5/Error message: A valid amount is required.

I set up a test customer profile in my sandbox and ran a few auth/captures with my python code.  When the amount is a multiple of 0.25 the transaction succeeds but any other amounts fail.  Is this expected behavior?

 

>>> charge_customer_profile('500311421', '500535512', Decimal(20.25), 'test000001')

Multiple accepting paths for <class 'authorizenet.apicontractsv1.CTD_ANON_9'>

Multiple accepting paths for <class 'authorizenet.apicontractsv1.CTD_ANON_8'>

Multiple accepting paths for {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileIdType

Multiple accepting paths for {AnetApi/xml/v1/schema/AnetApiSchema.xsd}transactionResponse

('SUCCESS', 'Successfully created transaction with Transaction ID: 40068028999\nTransaction Response Code: 1\nMessage Code: 1\nDescription: This transaction has been approved.')

>>> charge_customer_profile('500311421', '500535512', Decimal(20.20), 'test000001')

Multiple accepting paths for <class 'authorizenet.apicontractsv1.CTD_ANON_11'>

Multiple accepting paths for <class 'authorizenet.apicontractsv1.CTD_ANON_10'>

Multiple accepting paths for {AnetApi/xml/v1/schema/AnetApiSchema.xsd}transactionResponse

('FAILURE', 'Error Code: 5\nError message: A valid amount is required.')