Inhalte aufrufen

Profilbild

Payment plugin documents


3 Antworten zu diesem Thema

#1 SalehBagheri

SalehBagheri

    Member

  • Members
  • 23 Beiträge

Geschrieben: 24 July 2016 - 08:09

Hi,

 

I want to write a third-party payment plugin (redirection) but there is no documents about payment plugin and how to write it.

 

when "PostProcessPayment" method is called? is it call from Payment Controller? which method called first after an order confirmed?

 

this link is absolete : https://smartstore.a...-Payment-Plugin

 

help me please.

 

regards



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3241 Beiträge

Geschrieben: 25 July 2016 - 11:19

PostProcessPayment is called in CheckoutController after an order has been placed.
 
And it is called in OrderController if your plugin supports to re-post a payment and when the buyer wants to re-post his payment, for example to be redirected to the payment provider's payment page again.
 
It is typically used by payment plugins if a redirection to a third party payment page is required to fulfill the payment.

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 SalehBagheri

SalehBagheri

    Member

  • Members
  • 23 Beiträge

Geschrieben: 20 February 2018 - 12:15

Hi,

How can I post some data like merchant code during "Redirect" to gateway url? because, the gateway only accept "Post" request to display payment page! so "postProcessPaymentRequest.RedirectUrl" displays error page on destination gateway!



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3241 Beiträge

Geschrieben: 20 February 2018 - 15:29

For example by an action filter for CheckoutController.Completed and post redirect in it if the buyer selected your payment method.


  • SalehBagheri gefällt das

Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten