Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authorize.net credit card charging in sandbox returns refTransID in response as null

I'm using sandbox account in Authorize.net and processing credit card charging. There is my response:

{ createTransactionResponse:
   { 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
     'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema',
     xmlns: 'AnetApi/xml/v1/schema/AnetApiSchema.xsd',
     messages: { resultCode: 'Ok', message: [Object] },
     transactionResponse:
      { responseCode: '1',
        authCode: '******',
        avsResultCode: 'Y',
        cvvResultCode: 'P',
        transId: '**********',
        refTransID: null,
        transHash: '************************',
        testRequest: '0',
        accountNumber: 'XXXX0000',
        entryMode: 'Keyed',
        accountType: 'AmericanExpress',
        messages: [Object] } } }

Why refTransID is null? I need this value for refund processing.

like image 620
user3360846 Avatar asked Oct 25 '25 22:10

user3360846


1 Answers

From the manual:

Transaction ID of the original partial authorization transaction. Required only for refundTransaction, priorAuthCaptureTransaction, and voidTransaction. Do not include this field if you are providing splitTenderId

So unless you are doing a split tender transaction you do not need this field for a refund.

like image 81
John Conde Avatar answered Oct 29 '25 20:10

John Conde