Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Payment Gateway Logs Out Of Account On Completion Of Payment Rate Topic   - - - - -

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 25 November 2020 - 06:53 AM #1

Hello, so we're integrating an online payment gateway with our site, and the way it's requests are structured are very similar to Paypal, so we patterned our integration on that. 

 

However, as we're testing right now on a sandbox account, for some reason, sometimes upon approval of the payment, and redirection to checkout.complete, we get logged out of our account. However the other payment gateways still work fine, it doesn't happen to them. 

 

We've debugged a bit, and when it gets to the payment.notification.approval dispatch we're still logged in. However, after redirecting to checkout.complete we're already logged out. Could it be an issue with something in fn_distpach() or fn_redirect?

If anyone has had this problem and has resolved it, a point in the right direction would be greatly appreciated, thanks!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21777 posts

Posted 25 November 2020 - 01:22 PM #2

If anyone has had this problem and has resolved it, a point in the right direction would be greatly appreciated, thanks!

 

We have two customers with the same issue. But the reason is not found yet


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 25 November 2020 - 09:16 PM #3

Just a thought, it could be the size of the parameters area.  I think the default in most php environments is like 128K (don't quote me on the number) so you may need to increase it.  If it's blowing away the _SESSION area, then the 'auth' cookie might be getting destroyed.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 26 November 2020 - 12:24 AM #4

Just a thought, it could be the size of the parameters area.  I think the default in most php environments is like 128K (don't quote me on the number) so you may need to increase it.  If it's blowing away the _SESSION area, then the 'auth' cookie might be getting destroyed.

 

I see, we'll look into this, thank you very much!



 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 26 November 2020 - 01:45 AM #5

Update: We added a memory_limit=256M to our php.ini and we already have a post_max_size = 512M in there as well, but the problem is still there.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21777 posts

Posted 26 November 2020 - 04:35 AM #6

Try to post the issue to the bug tracker. We will also make a post there


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)