Reply
Member
Posts: 2
Registered: ‎08-19-2015

Transaction is successful and I can see the approval code, but the amount is 0

Hi,

I integrated Authorize.net CIM in a Rails application using the ActiveMerchant gem.

I'm using this code to charge the users, so this is an example of the request that I make with amount of 40. 

 

      response = gateway.create_customer_profile_transaction(transaction: {

                                     type: :auth_capture,
                                     amount: 40.0,
                                     customer_profile_id: 'the profile id..',
                                     customer_payment_profile_id: 'payment profile id...',
                                     order: {
                                         invoice_number: 'Invoice123123',
                                         description: 'invoice info'
                                     }
        })

 

the response's Response Code is successful and I get approval code too.

The problem is that the amount in the response is 0 and the Acount Number is empty. This happens only for one of the users.

Do you know why this behaviour happens?

 

Thanks,

Viktor

Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Transaction is successful and I can see the approval code, but the amount is 0

Hello @viktor

 

Is this transaction in production or the sandbox?  Are you able to lookup the transaction in the merchant interface?

 

Richard

Member
Posts: 2
Registered: ‎08-19-2015

Re: Transaction is successful and I can see the approval code, but the amount is 0

hi @RichardH,

Thanks for your response.

 

This is a transaction in production.

In the merchant interface it says that the transaction status is voided.

 

How can I see that through the response in code and why it shows successful?

 

Thanks,

Viktor