Jump to content

Photo

Payment plugin documents


  • Please log in to reply
3 replies to this topic

#1 SalehBagheri

SalehBagheri

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 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


S Ʌ L Ξ H - B Ʌ G H Ξ R I

Microsoft Certified Professional


#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3804 posts

Posted 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.

Marcus Gesing

Smartstore AG


#3 SalehBagheri

SalehBagheri

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 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!


S Ʌ L Ξ H - B Ʌ G H Ξ R I

Microsoft Certified Professional


#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3804 posts

Posted 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 likes this

Marcus Gesing

Smartstore AG