VivaPayments / API

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

OSCommerce problem with Viva redirection back to checkout page #487

Closed Barbutis closed 6 years ago

Barbutis commented 6 years ago

After the checkout process, Viva module redirects to the Viva payment page where the user has to input his/her card credentials. Payment is handled correctly and both the customer and the merchant see the payment. (So far so good). The problem is when the Viva page redirects back to the eshop, The user is redirected to the login page where he is logged out and prompted to login in again. When he logs in the cart products are still there and the order has not been processed. Everything is double/triple checked. Payment source is correct and added to module. MerchantID is added, api key also. Is there anything we can do?

VivaWalletSupport commented 6 years ago

Could you post a screenshot of the payment source settings?

Barbutis commented 6 years ago

The "Enable Vivawallet Module" is obviously false because we're testing on a live server and we don't want anything to happen. viva_screenshot

VivaWalletSupport commented 6 years ago

I would suggest to test first in the demo mode (rename the title in the language files to something that indicates a demo/test).

Barbutis commented 6 years ago

That suggestion is not really helpfull. I am currently testing on that live server, just reenabling/redisabling the module when i'm not using it. Do you have any possible solution for my problem? (i am not trying to be mean, just that that particular answer was not meant to be of help). I have also tried some solutions posted by others such as enabling cookie domain paths and meddling with checkout_success and checkout_process but nothing seems to work.

VivaWalletSupport commented 6 years ago

Without being able to make a test transaction I cannot perform any check. Also it is a good practice to test the payment gateway in the demo environment and to go live only after everything is working correctly in that environment.

Barbutis commented 6 years ago

I reenabled the module and activated the demo mode. Also i changed the price of this specific product https://www.germanos.parts/catalog/product_info.php?products_id=4881 to 0,01 euro in case you need to buy anything. Is there anything else i can do to assist you in your testings?

VivaWalletSupport commented 6 years ago

I would suggest to increase the price of the demo product as the minimum order amount is 30 cents.

VivaWalletSupport commented 6 years ago

Also make sure you use the Merchant ID / API key / Payment Source Code from the demo environment.

Barbutis commented 6 years ago

Good morning and sorry for the delayed answer, we just had to contact Viva in order to create the demo account. Well, we created it and we set it up in our site. As instructed by Viva (something you probably already know) the demo credentials are 4111 1111 1111 1111 for card number, and 111 for CVV2; all other fields are of no importance. Is there anything else you need to make your tests?

VivaWalletSupport commented 6 years ago

Hello, could you post a screenshot of the demo payment source settings having the endings of the Success / Fail entries visible?

Barbutis commented 6 years ago

Ofc. I have the success/failure urls written at the bottom cause i also that the "catalog/" part is also usefull.

viva_screenshot-2

VivaWalletSupport commented 6 years ago

Please contact me at vivawalletgithubsupport@hellasboost.gr and send a cc to ecommerce-support@vivawallet.com to investigate the problem.