Home   |   Get it Now   |    User Login   |    About Us   |    Contact Us    |    Newsletter   |    Company Blog   |   Careers
 
 
Payments | Invoicing | Marketing | CRM | Gift Cards | Affiliates | Developers  

.NET Plugin

 
A full .Net demo application with debugging and code documentation can be downloaded for VS 2003 & VS 2005.  

For direct integration support:
Phone: 1.800.763.6358 ext. 808 Email:  Developer Support
Join:    Developer Forum

 

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

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 GoToBillingLibrary and click OK.

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

          GoToBilling.GoToBillingAPI api = new GoToBilling.GoToBillingAPI();

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 GoToBilling to set up a test account for certification with your application.

 
 

Copyright © 2007 - 2008 GoToBilling, Inc.        Home   |   User Login   |    Forums   |    Company Blog   |   About Us   |    Newsletter   |    Affiliates
All Rights Reserved