API Questions on Kentico API.
Version 5.x > API > Custom Payment Provider question View modes: 
User avatar
Member
Member
wensveen-evident - 7/11/2011 8:33:38 AM
   
Custom Payment Provider question
Hi,

I want to implement a custom payment provider, just to test it out. I'm following the steps in the E-commerce Guide under "Developing custom payment gateways". I want things to be as simple as possible: no custom form, redirect to external payment provider (DummyPay.aspx or something), return to website.

On DummyPay.aspx I have a form where the payment status can be selected.

Where do I implement the return to the website, and how is the Payment result info (CMS.Ecommerce.PaymentResultInfo) set? Do I need to implement a special return page where I set the result info based on querystring values or something?

Any assistance is welcome.
Thanks in advance,
Matthijs

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2011 6:15:16 AM
   
RE:Custom Payment Provider question
Hi,

all you need to do is to update OrderPaymentResult in COM_Order table. You can find inspiration in PayPal configuration.

Functionality is implemented in ~/CMSModules/Ecommerce/CMSPages/PayPalIPn.aspx

Best regards,
Ivana Tomanickova

User avatar
Member
Member
wensveen-evident - 7/15/2011 2:10:58 AM
   
RE:Custom Payment Provider question
In the case of the PayPal setup this is done in the IPN page. Can I use the PayPal provider classes to implement other PayPal-alike gateways?
If not, I presume I need to implement the IPN (of supported by the gateway) and return pages myself and update the payment result there?

Thanks,
Matthijs

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/18/2011 1:18:18 AM
   
RE:Custom Payment Provider question
Hi,

the PayPal provider is specialized for PayPal. Unfortunately, without a source code you will not be able to change it to work with your gateway.

Therefore you need to create the IPN page that will support your gateway.

Best regards,
Ivana Tomanickova