DotNetInvoice Forums

DotNetInvoice Invoicing Script Discussion Forum
Welcome to DotNetInvoice Forums Sign in | Join | Help
in Search

Implementing a Custom Payment Provider

Last post 11-06-2007, 9:05 AM by support. 1 replies.
Sort Posts: Previous Next
  •  11-01-2007, 8:07 AM 190

    Implementing a Custom Payment Provider

    Hello,

    We would like to integrate DotNetInvoice into our application, but I'm hearing that we may want to use PaySimple instead of Authorize.NET for all CC/ACH transactions.  Once we get the code, I assume it shouldn't be that hard for us to write one or more custom classes to implement support for this provider.  Does that sound right?

    Best regards, S.

  •  11-06-2007, 9:05 AM 196 in reply to 190

    Re: Implementing a Custom Payment Provider

    Sean, 

    Absolutely.

    If you look in /App_Code/payments.vb there are two code sections that handle the current providers: one is called AuthorizeNet, the other PaypalPaymentsPro. You would add a new region, probably by copying AuthorizeNet (I imagine it will be closer to that API than to PayPal's).

    Change the method name to ProcessPaySimple() and implement your custom PaySimple logic in there.

    Search for the function called ProcessPayment() in the same file, and add  ProcessPaySimple() to the case statement.

    Add PaySimple to the dni_processors table, and add its required authentication tokens (username, password, etc...) to dni_processors_config. The new processor will magically appear in the processor configuration section and you can set the values there.

    That should just about do it. Feel free to email us directly at support@dotnetinvoice.com if you run into trouble while making this change.

     


    ---
    Rob
    DotNetInvoice Support
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems