Inhalte aufrufen

Profilbild

Custon Gateway Development


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 net4u

net4u

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 48 Beiträge

Geschrieben: 29 May 2014 - 18:58

What are the best steps for developing a custom gateway plugin? In my case I am interested to make a gateway for PAYU (Romania), but I consider also others.

 

Thank you



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3804 Beiträge

Geschrieben: 30 May 2014 - 10:29

PayU is a payment gateway, so I would take a look at the PayPal Standard plugin. You need a PayUPaymentProcessor class that is derived from PaymentMethodBase
and a controller derived from PaymentControllerBase. That will connect your plugin with the SmartStore.NET payment infrastructure.
 
There are two types of payment gateways. a) User is redirected to a payment processing page of the gateway when he clicks the buy-button. Example: PayPal Standard.
b) There is no redirection, everything is done internally so that the user always stays on the pages of your shop. Example: PayPal Direct.
 
The type of the gateway you want to implement determines the overrides of PaymentMethodBase you have to implement.
 
For a) the main processing happens in PostProcessPayment of your payment processor. Typically creating a request URL and redirecting to the gateway. Gateway feedback
is coming in and processed through an action method of your plugin controller.
 
For b) the main processing happens in ProcessPayment of your payment processor. Capture override serves a button that enables the merchant to capture a payment in the backend.
Void override serves a button that enables the merchant to void a payment in the backend and so on.

Marcus Gesing

Smartstore AG