Visual Studio .Net

This development package contains the .Net plugin including tutorials, demos, and the .Net Plugin installation (.exe) files for Visual Studio 2003 and Visual Studio 2005.

1. Begin by downloading and installing the appropriate paymentAccess .Net Plugin. Versions exist for both Visual Studio 2003 and Visual Studio 2005 (which may also be compatible with Visual Studio 2008)

Demo:..........VS 2003
File:..............VS 2003

Demo:.........VS 2005
File:.............VS 2005

2. Open the appropriate Visual Studio release.

3. Create a new project in your preferred language.

4. In the Solution Explorer, right-click on your project, and click Add Reference.

5. On the .Net tab, select the paymentAccess Library and click OK.

6. At the location you would like to submit a new transaction, create a new paymentAccess object:

gotobilling.gotobillingAPI api = new gotobilling.gotobillingAccessAPI();

7. Set the appropriate parameters for your transaction, for example, you are required to send your Merchand ID
and Pin:

api.MerchantId = int.Parse(textBox4.Text);
api.MerchantPin = textBox5.Text;

8. Submit the transaction:

api.SendData();

9. Verify whether the transaction succeeded by checking the Status:

switch (api.Status) {
case "G":
textBox3.Text = "Status: Approved";
break;
case "R":
textBox3.Text = "Status: Received";
break;
case "D":
textBox3.Text = "Status: Declined Reason: " + api.Description;
break;
case "C":
textBox3.Text = "Status: Cancelled";
break;
case "T":
textBox3.Text = "Status: Timeout";
break;
}

Note: Once you are ready to test your integration, please contact paymentAccess to set up a test account for certification with your application.