Custom Payment Gateway

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
svetalex
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Fri Feb 22, 2008 1:37 pm

Custom Payment Gateway

Post by svetalex » Wed Jul 23, 2008 2:22 pm

WE need to create our custom payment Gateway. I created a new project (class library). In this project I inherited CustomGateway class from CommerceBuilder.Payments.Providers.PaymentProviderBase, and implemented all its methods. Compiled project into dll. Copied dll into bin folder of AbleCommerce. When I go to Admin->Add Gateway form, my CustomGateway is not shown. How I understand, it must be added to another implemented Gateways, GooglePayment, Paypal, etc.
Whats going wrong? I read on this forum that it must be displaied automatically.
Please, help. :cry:

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Custom Payment Gateway

Post by sohaib » Thu Jul 24, 2008 1:50 am

Please make sure you restart your web application after copying the new DLL to Website/Bin.

User avatar
svetalex
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Fri Feb 22, 2008 1:37 pm

Re: Custom Payment Gateway

Post by svetalex » Thu Jul 24, 2008 7:48 am

I did it. Doesn't work :cry: . My dll named: CommerceBuilder.CustomGateway.dll . Might be I need to change a name for CustomGateway.dll ?

User avatar
svetalex
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Fri Feb 22, 2008 1:37 pm

Re: Custom Payment Gateway

Post by svetalex » Thu Jul 24, 2008 8:18 am

I created a new project in the same way as previous. It's WORK ! :P
But, now when I clicked on my CustomGateway button I recived the following error in addgateway2.aspx : ProviderInstance.BuildConfigForm(phInputForm);

I understand I need provide UI for my control, right ?

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Custom Payment Gateway

Post by sohaib » Thu Jul 24, 2008 9:15 am

Yes you need to implement 'BuildConfigForm' method correctly.
I would suggest that you start from the implementation of Authorize.NET and modify it.
viewtopic.php?f=47&t=5926

Post Reply