• Hi there. This plugin is not installed on our live site… I fooled around with it on our password-protected staging site. I came across this User Switching plugin on the net when I was doing some research for a still unsolved problem. We have a woo store and some of the clients are old guys that “don’t understand ecommerce” but still browse our products. So we set up orders for them in the dashboard and then the site owner processes the payment outside the ecommerce system. The site owner asked me if I could figure out a way that he could key in the “old guys” credit card info on our site (they give it to him over the phone sometimes).
    Here is my question: with User Switching installed, I have been trying to pay for a test order by switching to the test customer profile and keying in a debit card number. Our payment gateway is WooCommerce PayPal Checkout Gateway, wherein the customers key in their info in a popup as opposed to being redirected to the PayPal site. I am able to enter the debit info into the paypal popup, but once I click the Finish button (or Pay or whatever its called), the paypal lock spins and “thinks” and then I am redirected back to the site and it says “Your PayPal session has expired.” Here’s the catch: it redirects me BACK to the LIVE SITE instead of the staging site and on the live site I am back in my admin profile (which makes sense bc I don’t have User Switching on the live site). I tried updating all available updates and then disabling the caching. No luck.

    I have successfully paid for test orders before on the staging site, and I was never sent from the staging site to the live site. I am pretty good with problem solving, and I don’t expect you to take the wheel here. Can you offer me any guidance on things I could try? Is the staging site itself causing a problem with User Switching (perhaps bc it is pw protected)? I am always hesitant to add stuff to the live store without testing first. I have considered the fact that the payment gateway might be the problem. Is there a credit card gateway that you could recommend that would work for our situation?

    Thank you for your time and sorry if this seems convoluted. Have a beautiful day and thank you for all your hard work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This is a difficult one.

    If you create a customer account and manually log in to it (instead of switching) does it work as expected?

    Can you take a look at your cookies after switching to the customer and see if there’s anything in there that might be passed along to the payment gateway?

    Thread Starter Kate

    (@katebopp)

    Thank you for your response. Let me fool around with it and see what I can come up with. Have a nice weekend. 🙂

    Thread Starter Kate

    (@katebopp)

    Update: I got it to work. I didn’t do what you asked me to about the cookies. I simply installed it on our live site and it worked. So I have to assume that it had something to do with the password-protected staging tool (which comes free with our hosting plan at Siteground). I think it’s ok to close this topic… if that is ok with you?

    **note: perhaps the reason I experienced the “switcheroo” from dev to production while doing my test transaction was because of the password protection. Something like, I as an admin had proper creds to be in my staging site but once I switched to the test customer, the test customer did not have the proper creds to be “let back in” (so to speak). Anyway, thanks for your contribution to the community.

    Thanks for the post, Kate. Bet it had to do with a PayPal redirect?

    I have the EXACY same challenge as you – lots of older members in our association who literally call in with credit card info or mail it in (gah!).

    We’re trying this plugin with PaidMembershipsPro, Authorize.net, and possibly WooCommerce / Cartflows. Hope it works because it would be amazing!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to pay for woo orders once switched to user’ is closed to new replies.