cancel
Showing results for 
Search instead for 
Did you mean: 

How create Refund a transaction c#

Hi,

 

I am trying to integrate refunds in my system with Authorize. This is my first time working with this API and I don't know how to do these implementations.

 

I have looked in the Authorize's documentation there is a method 'createTransactionRequest'. I'd just like a example to begin.

 

Thank you in advance for your help.

Jotch
Member
3 REPLIES 3

http://developer.authorize.net/downloads/samplecode/

just look at one the use xml. like the C# cim xml

RaynorC1emen7
Expert

Hi Raynor, Thanks fro your help. I am just trying to make something like this:

 

using System;
using PerksBase;
using AuthorizeNet;
using System.Configuration;
using System.Collections.Specialized;
using AuthorizeNet.APICore;

 

IGateway OpenGateway()

{

//we used the form builder so we can now just load it up

//using the form reader

var login = ConfigurationManager.AppSettings["ApiLogin"];

var transactionKey = ConfigurationManager.AppSettings["TransactionKey"];

//this is set to test mode - change as needed.

var gate = new Gateway(login, transactionKey, true);

return gate;

}

protected void btnSubmit_Click(object sender, EventArgs e)

{

var gate = OpenGateway();

createTransactionRequest tr = new createTransactionRequest();

........

........

I don't know if you can help me about the next steps.

Need I saved the customer's details in my authorize's account?

Can I make this transaction directly without saving customer's details?

}

 

Thank you again for your help and apologies for my ignorance with this.

Cheers.