Page 2 of 2

Re: Source for Payment Gateway Authorize.net

Posted: Thu Aug 14, 2008 3:43 am
by sohaib
Federated Payment Systems Payment Gateway http://www.federatedpayments.com

Can I add this gateway? If so, how do I do it?
Yes you can add this gateway if they provide integration API.
The Authorize.NET sample attached to this thread is a reference you can use to implement your own gateway.

Re: Source for Payment Gateway Authorize.net

Posted: Tue Aug 26, 2008 5:54 pm
by jtry
Fairly new to AbleCommerce, but trying to integrate AC7 with a custom gateway.

After I follow Authorize.net to create my own class, put the built dll into bin folder, how could I use it in my Checkout page?
Do I still need to go to merchant's admin page, to add and config a new Gateway? I am assuming no, because I am using a custom gateway. Am I correct?

And in my Checkout page, how could I use the gateway to charge money from users? For example, I want to charge user $10 from his credit card, what method should I call to achieve that? Is there any sample code to do that?

Thanks a lot!

Re: Source for Payment Gateway Authorize.net

Posted: Wed Aug 27, 2008 2:32 am
by sohaib
After I follow Authorize.net to create my own class, put the built dll into bin folder, how could I use it in my Checkout page?
Do I still need to go to merchant's admin page, to add and config a new Gateway? I am assuming no, because I am using a custom gateway. Am I correct?
Once you complete your custom gateway, compile it and put its DLL in Website/Bin folder, your new gateway will be automatically detected in merchant admin. You will add and configure it just like any other standard gateway.
And in my Checkout page, how could I use the gateway to charge money from users? For example, I want to charge user $10 from his credit card, what method should I call to achieve that? Is there any sample code to do that?
This is not for you to worry about. Once you add your new gateway from merchant admin and assign a payment method to it (for example Visa) the rest of it is all handled by Ablecommerce. You don't have to do anything manually at checkout.

Re: Source for Payment Gateway Authorize.net

Posted: Thu Aug 28, 2008 8:31 am
by ALD
Hi, Can I use the actual gateway providers to do my payments???
I'm doing a system outside the ablecommerce, I just need to pay with credit cards or paypal.
Now I'm using the class CommerceBuilder.Payments.Payment, but maybe I'm doing something wrong.

Is there a way to do my payments using the ablecommerce dlls??, the company I work already bougth the license and I don't know where to start. I just need to do the follow:

In my own page (outside ablecommerce) the user must:
1. Fill the billing address. (There is not shiiping address since there's not a product involve i'ts a service)
2. Fill the information of the credit card or Press the button (Pay with PayPal)
3. Process the payment.

Thanks in advance.
Aldo

Re: Source for Payment Gateway Authorize.net

Posted: Mon Sep 01, 2008 11:36 am
by jtry
Thanks a lot for your reply!
I still have some other questions about building my custom gateway dll.

1. The payment gateway I am using accepts payment request values in a series of hidden values inside of the form of the page, and it send the response to a default or custom receipt page. In this case, I don't know if I can use HttpWebRequest to send the request and get response directly.

2. It also provides a means to integrate in XML format. Request data are used to create a xml file and this xml file is put in the query string with a key: xmldata.
some thing like, .../processxml.do?xmldata=<txn><ssl_merchant_ID>123456...
And finally the response is sent to a default or custom receipt page too.

I really have no idea how should I change the Payment Gateway class to make it work. Any suggestion is highly appreciated!

Re: Source for Payment Gateway Authorize.net

Posted: Mon Sep 01, 2008 9:02 pm
by sohaib
Payment gateways that depend on call-back notifications require some extra work. They are not as straightforward to implement as the ones that support direct processing.

During the checkout control needs to be transferred to the payment gateway sites that work using call-back notifications. Once the payment is completed on the payment processor's web site the control is returned back to a page on your store.

So you basically need to do two more things
- Write code that transfers the control during checkout to the payment provider's website.
- Write a page or pages in your store that receives call-backs from your payment provider.

In order to write a code that transfers control to the payment processor during checkout the proper way to do it is to create a new payment method (say My-CustomPaymentGateway-Method) and write a corresponding payment form control for that payment method. See controls in Website/Checkout/PaymentForms for examples. Your payment form should display whatever is appropriate for making payment using your processor and once the user chooses to make payment using this processor, transfer the control to the processors web-site along with all the parameters that are required. Once the payment is completed by the user on the processors web-site the processor will send notification back to your store on a URL that you would have configured.

The second part is to write the code that handles the call-back notifications from your processor. You can write a new page for this purpose or you can make appropriate modifications in some existing page.

Re: Source for Payment Gateway Authorize.net

Posted: Tue Sep 02, 2008 1:59 am
by jtry
Thanks a lot for your reply!

But how should I write a new Payment Method? Can I still use Authorize.net as a blueprint?

For the second part, where can I find existing pages that handle the call-back notifications in AC7?

Re: Source for Payment Gateway Authorize.net

Posted: Thu Oct 02, 2008 3:58 pm
by jtry
Question about those DoXXX methods:

1. The payment gateway I'm using won't let me to do DoAuthorize first and then DoCapture. There is only one kind of transaction type I can use - "ccsale". Could I igonre DoAuthorize and change DoCapture to directly charge the amout of a transaction?

2. There is no refund transaction type for the gateway as well. For refunding, I have to log in to the payment terminal and manually do it. So could I ignore the DoRefund method as well?

Thanks a lot!

Re: Source for Payment Gateway Authorize.net

Posted: Wed Feb 25, 2009 10:24 am
by javelin1814
sohaib wrote:Payment gateways that depend on call-back notifications require some extra work. They are not as straightforward to implement as the ones that support direct processing.

During the checkout control needs to be transferred to the payment gateway sites that work using call-back notifications. Once the payment is completed on the payment processor's web site the control is returned back to a page on your store.
Which methods would you define as "direct processing". Can I assume that Get and Post are not it. :)

I need to integrate MyVirtualMerchant and I'm not even sure if it meets that minimum requirement.

Re: Source for Payment Gateway Authorize.net

Posted: Wed Feb 25, 2009 10:48 am
by Logan Rhodehamel
javelin1814 wrote:Which methods would you define as "direct processing". Can I assume that Get and Post are not it. :)

I need to integrate MyVirtualMerchant and I'm not even sure if it meets that minimum requirement.
By direct processing, I mean a gateway that allows you to send a message (usually via HTTPS POST) with the payment details and request authorization, and in the response the gateway will give you an authorization or a decline.

The other kind of method is where payments take place on a different website. PayPal is a good example. If you are paying by credit card (or check) through PayPal, we have to finalize the order in the AbleCommerce database and then get the customer over to the PayPal site. No payment information is collected on your site. Instead, you have to wait for PayPal to contact your website and notify you that the payment is made. This is referred to as a "callback".

Re: Source for Payment Gateway Authorize.net

Posted: Wed Oct 28, 2009 6:49 pm
by amritjain
Hi,

Is it possible to get the source code for Cyber Source payment Gateway ? We are planning to write our own Payment Gateway for the CyberSource where we want to user CyberSource's subscription-id for auth, capture and refund.

Thanks for your help!

Regards,
Amrit Jain

Re: Source for Payment Gateway Authorize.net

Posted: Thu Feb 18, 2010 12:35 pm
by sudharv
Hi:

I am working with SecurePay that has an Authorize.net emulator.

I have completed custom gateway using the authorize.net code you have provided, compiled it and placed its DLL in Website/Bin folder. The new gateway was automatically detected in merchant admin. I have added and configured it. However, when I place an order, it is not hitting the securepay gateway.

I checked App_Data/Logs folder and I see securepay.log file..I see error messages in that file..Here is the message.

Receive: 3||7|The credit card expiration date is invalid.||||18||20.83|CC|AUTH_CAPTURE|2|Russ|Miller||7435+Fairway+Two+Ave%2c+%2319|Fair+Oaks|CA|95628|US|916-965-0450||rmiller%40gfxinternetservices.com|Russ|Miller||7435+Fairway+Two+Ave%2c+%2319|Fair+Oaks|Fair+Oaks|CA|95628||||||||

Please help. Thank you for looking in to it.

Thanks,
Sudha

Re: Source for Payment Gateway Authorize.net

Posted: Tue Feb 23, 2010 8:54 am
by mazhar
sudharv wrote:Hi:

I am working with SecurePay that has an Authorize.net emulator.

I have completed custom gateway using the authorize.net code you have provided, compiled it and placed its DLL in Website/Bin folder. The new gateway was automatically detected in merchant admin. I have added and configured it. However, when I place an order, it is not hitting the securepay gateway.

I checked App_Data/Logs folder and I see securepay.log file..I see error messages in that file..Here is the message.

Receive: 3||7|The credit card expiration date is invalid.||||18||20.83|CC|AUTH_CAPTURE|2|Russ|Miller||7435+Fairway+Two+Ave%2c+%2319|Fair+Oaks|CA|95628|US|916-965-0450||rmiller%40gfxinternetservices.com|Russ|Miller||7435+Fairway+Two+Ave%2c+%2319|Fair+Oaks|Fair+Oaks|CA|95628||||||||

Please help. Thank you for looking in to it.

Thanks,
Sudha
I guess this is been resolved in this thread
viewtopic.php?f=42&t=13236