Hi.
It’s definitely not a feature, but rather a bug. Can you fill in your website details in your initial post so I can have a closer look?
Dear Alexander,
https://www.supergmtransport.com.au/payment/ — this is the link directly to the payment system on my website. I have just updated to v2.0.14.
Try enabling debug logging in the plugin settings. Then do a test payment and see the logs. There should be a line there similar to this one:
[12/11/2019 3:31:47 PM] – Redirecting to results page ” https://example.com/stripe-checkout-result/ “
Let me know how the URL in this line looks like.
-
This reply was modified 6 years, 5 months ago by
Alexander C..
-
This reply was modified 6 years, 5 months ago by
Alexander C..
I’m having the same issue. The log contains a line “Redirecting to results page “https://www.impram.net/stripe-checkout-result/”, but instead of actually getting the results page, the customers are redirected to log in to WordPress.
Here’s the log (with 2 test attempts): https://impram.net/wp-content/uploads/2020/01/impram.net_SP_log.txt
Here’s the results page screenshot (if I go directly to the page address, it contains the correct details): https://impram.net/wp-content/uploads/2020/01/Screenshot-2020-01-09-at-10.32.02.png
Thank you for providing log files.
We will investigate the issue further.
I figured what’s the issue in your case (and probably in topicstarter’s case as well).
You make a payment from domain.com, however your checkout results page is www.domain.com. wp_safe_redirect() function (which is used to do the redirect) assumes this as unsafe redirect, thus redirecting it to wp-admin instead.
Can you edit Checkout Results Page in plugin settings to be https://domain.com/stripe-checkout-result/ without www? Replace domain.com with your actual domain name. Let me know the results.
-
This reply was modified 6 years, 5 months ago by
Alexander C..
It worked!! Thank you so much for your help and for a prompt reply.
A bit strange that it wasn’t an issue until version 2.0.15, but awesome that you could figure it out immediately. Thank you so much!
Thank you for providing debug logs, those helped to instantly track the issue.
I believe that part of the code wasn’t changed in version 2.0.15. Perhaps something changed in your WP site settings or server config?
Anyway, I have modified the code to prevent similar situations from happening. Now it would correctly redirect customers to checkout results page, no matter if there’s a difference in domain name. This will be available in the upcoming plugin version (2.0.18), which is coming shortly.
This should be resolved since version 2.0.18.