Regarding Payment Method

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I have implemented iyzico payment method. But i am getting one issue. When i returning back from iyzico in the paymentresult action i found currentcusomer changes to new customer. and also my session variable goes null.
Can anyone please tell me what can be the solution.
Thanks
5 years ago
mohiuddinmahmud wrote:
I have implemented iyzico payment method. But i am getting one issue. When i returning back from iyzico in the paymentresult action i found currentcusomer changes to new customer. and also my session variable goes null.
Can anyone please tell me what can be the solution.
Thanks


Your customer is logged in or not. if logged in already then it should not happened.

If not logged in then you should pass customer guid to your payment gateway response parameter. So you will get customer guid in response. then you should use it.

Hope this idea will work

Thanks,
Jatin
5 years ago
Yes my customer is logged in. When i go to any other page it works normally. Current Customer getting new only after  turning back from the payment method only PaymentResult Action. As i said when i submitting form i am saving some data to session variable. This session variable also lost when turning back. I am doing this in NopCommerce 4.0. This payment gateway working fine properly in NopCommerce 3.9 and 3.8 version.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.