VivaPayments / API

Index of Viva Wallet open source projects on GitHub.
139 stars 162 forks source link

Redirection to success page on magento 1.9 #1154

Closed ptazta closed 5 years ago

ptazta commented 5 years ago

Hello, I have installed the extension for magento 1.9, I have two languages. When you make a payment via Viva Wallet, the payment is done correctly, I have added the url of redirection so that it returns to the web once made the payment, but I would like that it could return to the page of confirmation of order instead of to the home page.

It happens that some parameters are needed to get to that page.

Is this possible?

Thank you

VivaWalletSupport commented 5 years ago

Hello, in case you use the supported plugin from https://developer.vivawallet.com/e-commerce-plugins/magento1.x/ and follow the setup instructions given on that page, it should work exactly as you need it.

ptazta commented 5 years ago

Hello, I have reviewed everything and have it as indicated in the extension documentation.

Attached is a snapshot of the configuration in: Online payments/Websites-apps and another one of the error when returning to the page once the payment has been made correctly.

Please tell me what's wrong.

The success and failure urls must be these, right?

Thank you.

Captura de pantalla 2019-10-18 a las 10 36 00

Captura de pantalla 2019-10-18 a las 10 43 50
VivaWalletSupport commented 5 years ago

For your English store you should use the language parameter in the return URLs like en/vivawallet/hpay/hpok/ and en/vivawallet/hpay/hpnok/

ptazta commented 5 years ago

Ok, but what happens then if a purchase is made in the Spanish version?

What urls do I have to put in the configuration?

VivaWalletSupport commented 5 years ago

You would create another payment source for Spanish using the return URLs es/vivawallet/hpay/hpok/ and es/vivawallet/hpay/hpnok/

ptazta commented 5 years ago

yeah!! now its ok!! thanks.