Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 2
Registered: ‎12-20-2012
Accepted Solution

CIM Refund with an existing previous transaction : invalid child element 'transId'

Hi,

 

I use the CIM integration solution, and all work perfectly except for a refund transaction with an existing previous CIM debit.

I use the php sdki, here is my code :

 

---------------------------------------------------------------------------------------------

$this->request = new \AuthorizeNetCIM(
     $this->configuration['providers']['authorizer']['api_login'],
     $this->configuration['providers']['authorizer']['api_key']
);


$transaction = new \AuthorizeNetTransaction();
$transaction->transId = $transactionId;

 

$response = $this->request->createCustomerProfileTransaction("Refund", $transaction);
---------------------------------------------------------------------------------------------

 

And here is my error :

The element 'profileTransRefund' has invalid child element 'transId'. List of possible elements expected: 'amount'.

 

I tested with and without customerProfileId and customerPaymentProfileId and I have an error too.

Can you helper me ? You see a mistake somewhere?

 

Thanks for this nice solution,

Dimitri.


Accepted Solutions
Solution
Accepted by topic author Dimitri
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Refund with an existing previous transaction : invalid child element 'transId'

Solution
Accepted by topic author Dimitri
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Refund with an existing previous transaction : invalid child element 'transId'

they settled once a day, or login to the test merchant account, and find one that is already settled.

View solution in original post


All Replies
Solution
Accepted by topic author Dimitri
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Refund with an existing previous transaction : invalid child element 'transId'

Member
Posts: 2
Registered: ‎12-20-2012

Re: CIM Refund with an existing previous transaction : invalid child element 'transId'

Thanks It seems to work but I have a new problem "The referenced transaction does not meet the criteria for issuing a credit." passing the amount. It seems to be due to the fact that the previous debit transaction may not be settled.

 

Is there a way to settle the transaction in test environment?

 

Thank again.

Dimitri

Solution
Accepted by topic author Dimitri
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Refund with an existing previous transaction : invalid child element 'transId'

they settled once a day, or login to the test merchant account, and find one that is already settled.