in

dashCommerce

An ASP.NET Open Source e-Commerce Application

PAYMENT PROVIDERS - Authorize.NET

Last post 08-20-2008 8:32 AM by venkatagopalan. 25 replies.
Page 1 of 2 (26 items) 1 2 Next >
Sort Posts: Previous Next
  • 02-19-2008 7:22 PM

    PAYMENT PROVIDERS - Authorize.NET

    Has anyone implemented custom Payment providers?
    I am looking to try authorize.net provider.
    Is there help on instructions on how to implement custom Payment provider?

  • 02-28-2008 11:52 AM In reply to

    • ducret
    • Top 150 Contributor
    • Joined on 02-18-2008
    • Switzerland
    • Posts 6

    Re: PAYMENT PROVIDERS - Authorize.NET

     I search too, do you have find something ?

    Patrick Ducret
  • 02-28-2008 12:49 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    I'll be putting a screencast together on this - look for it next week sometime.

    --
    Support dashCommerce - Buy Our Stuff!!


    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
    Filed under:
  • 02-28-2008 4:06 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    Yes, it would be really nice to see.
    I would really like to have Authorize.NET implemented, it was part of commercestarterKit as far as I can remmber.

  • 03-04-2008 2:40 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    That would be awesome!  Exactly what I am looking for.  Please post back in the forum when you have that up.  Keep up the great work!!!  Thanks a ton.

  • 03-14-2008 5:05 PM In reply to

    • syam
    • Top 500 Contributor
    • Joined on 03-01-2008
    • Posts 2

    Re: PAYMENT PROVIDERS - Authorize.NET

    I am planning to write the authorize.net provider in comming weeks. If there is some one already started coding I can help or I will have to start again. 

    Filed under:
  • 03-14-2008 5:31 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

     A screecast for payment providers would be very welcome. Is there an interface that should be followed for a non-credit card checkout? I'd like to code an interface into an ERP Back end for fullfillment. This would in effect create the Sales Order (for authorized accounts) and put the charge on account.

    This is a great platform to customize from !!! 

    Filed under: , ,
  • 03-25-2008 8:31 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    and the crowd was chanting......

     

    SCREEENCASST!!!! SCREEEENCAAASSST!!! SCREEEEENCAST!!!!

  • 04-14-2008 2:09 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    Any word on when this will happen?

    I could really use this like a month ago.

  • 04-14-2008 2:40 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    For what it is worth, I have implemented an Authorize.Net payment provider (charge, refund) based on the RC1 code base. Very easy to do, really. (I cannot post the code, so don't ask.)

    That being said, I changed a few thing in my project, but here is my rough outline:

    Implement the Store.Services.PaymentService.IPaymentProvider interface

    The provider must implement this interface, specifically the Authorize, Charge and Refund methods.

    The interface should be re-factored to segregate the PayPal interface requirements from the base payment provider interface. (I did this, I didn't like the coupling - PayPal seems like a hack onto dashCommerce, rather than integrated. For me, express checkout is a service, as is direct for Standard and Pro.)

    The class instance must have a constructor that matches (in order) the configuration properties stored.

    Add a control that creates and saves the configuration settings for the provider in the same order they are used for the class constructor.

    This is an implementation requirement for how the class instance is created (Activator.CreateInstance)

    Settings I tracked: Service URL, Api Version, Api Logon, Api Transaction Key, Is Live/Test Mode, Email customer flag, Email merchant flag and merchant e-mail address.

    For configuration, store the transaction mode (live, test), API version, API login and transaction key.

    The configuration for the provider will need to store these values for payment processing (these are non-order specific.)

    I also included e-mail and e-Check support as well as service URL information to switch between testing, live, and certification.

    Create the resource strings for the localization project for display.

    This keeps the solution consistent with the existing efforts for localization and provides configuration item help on the administration page.

    I abstracted the response handling a bit more than some implementations I have seen, all together though, it took me about 4-5 hours (having never implemented one before.)

    Rough implementation:

    Charge - use a NameValueCollection and build up the arguments. Pass them to the UploadValues method of the WebClient class, which returns a byte[ response. Parse that using the Encoding.Ascii.GetString. Split the string by "," and eliminate the field delimiters "|".

    I created a helper method to rip out the response fields (AIM_GUIDE.PDF page #22), passing in an enumeration of the fields by position from the same guide.

    If the response succeeds, use the Transaction code from the PayPayl provider, if it fails, write useful information into the Error string and do not create a transaction.

    Hope that helps.

    P.S. I also now have a UPS shipping provider and am working on FedEx and USPS.

  • 04-14-2008 2:57 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    thanksx!

    Why cant you post the code? so our lazy asses can start moving forward instead of procrastinating waiting for webcast!??????

  • 04-14-2008 3:00 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    Hi Robert,

    thanks for putting this together - it sums it up nicely, and I think I agree with your comments about the IPaymentProvider interface.

    FWIW - this can all be done in a separate assembly / solution - thus the ability to sell these providers through dashCommerce.com

    --
    Support dashCommerce - Buy Our Stuff!!


    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us! Documentation? Help us write some!
    Filed under:
  • 04-14-2008 3:10 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    "Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime." - Chinese Proverb

    Wink

  • 04-14-2008 3:31 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    "HOW MUCH IS THE FIIIIIIIIIIIIIIISH?!!!!" - SCOOTER 

     

    FYI:

    http://www.youtube.com/watch?v=T8m6IbItrgk

     

  • 04-14-2008 3:32 PM In reply to

    Re: PAYMENT PROVIDERS - Authorize.NET

    It's good to know how to fish, but it's still a lot faster if you have a friend with some extra fish.  Wink

    I could write a provider myself, but I'm really pressed for time to finish this project.  4-5 hours is more time than I really have to spare right now.  It would be nice if someone could post some code.

Page 1 of 2 (26 items) 1 2 Next >