Author Topic: sending payment status  (Read 279 times)

Offline shahiran12395

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
    • View Profile
sending payment status
« on: May 21, 2019, 03:38:24 AM »
afternoon, i have problem with redirect back from payment gateway after success or fail. Can someone advice me on how to sent success payment or failed payment to the system.

FYI, im creating my own payment extension. below partial code on how parameter is sent to the payment gateway.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1780
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: sending payment status
« Reply #1 on: May 21, 2019, 04:51:30 AM »
Hi.
You should to change order status if order fail or succeded and redirect to rt=checkout/success.
See file public_html/extensions/default_pp_standart/storefront/controller/responses/extension/default_pp_standart.php as example
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline shahiran12395

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
    • View Profile
Re: sending payment status
« Reply #2 on: May 22, 2019, 03:17:05 AM »
okey. btw how can i fix this parameter in url
rt=checkout/success?paid=0&id=my19403_1558509080_478&puid=my19403_1558509085_50932&vt=3210C781069622E6547D2A25FE68BAF4

because the parameter will be sent by the payment provider using url_return in my previous post

 

Powered by SMFPacks Social Login Mod