I am using RS-Joomla's RSForm component which has a STRIPE plug-in to take purchases.
The form and STRIPE are working fine.
The problem is that STRIPE uses a web-hook to return the purchase confirmation and transaction data.
It looks like this when it comes back from STRIPE:
https://www.xxxx.nz/new/index.php?option=com_rsform&formId=4&task=plugin&plugin_task=stripe.return&code=629358ac8b3c63724b209e11ecaef80e
But this is failing and shows as a 404 error.
In SH404SEF config I then set RSForm to use the Joomla Router only.
The webhook still failed.
When I turned SH404SEF off completely was the only time that the webhook succeeded.
That, unfortunately, is not a good solution as I rely on your product!
Any ideas?
Helpdesk is open from Monday through Friday CET
#7494 – RSForm STRIPE Plugin: STRIPE Webhooks Failing
Hi
Well, that URL is a non-SEF one so really sh404SEF as no impact on it. The first things that come to mind are:
1 - Make sure these 2 options, under the "Advanced" tab, are disabled:
- "301 redirect from non-sef to SEF"
- "301 redirect from Joomla SEF to sh404SEF"
2 - How are you testing? If you just enter https://www.xxxx.nz/new/index.php?option=com_rsform&formId=4&task=plugin&plugin_task=stripe.return&code=629358ac8b3c63724b209e11ecaef80e in your browser address bar, it's expected to give a 404. Those URLs are only valid once and cannot be re-used.
3 - What kind of 404 are you getting? I mean exactly, what do you see on the the screen? the sh404SEF error page? the Joomla 404 page? your web server error page?
4 - What happens if you:
a - set RS Forms to "Leave as non-SEF"
b - Delete all RS Forms URLs in the SEF URL manager
c - Try again with a purchase (not testing by pasting a URL in the address bar)
Best regards
Yannick Gaultier
weeblr.com / @weeblr
I tried the settings you recommended and they seemed to have worked!
Thank you for that!
Will do some live tests.
Thanks again.
Hi
Which settings, the 1st ones?
- "301 redirect from non-sef to SEF"
- "301 redirect from Joomla SEF to sh404SEF"
If so, yes, they should be left disabled (will be removed in the future). They are off by default on new installs and have been for a while but if your site is more than a couple years old, they might have been enabled when sh404SEF was first installed.
I will leave this ticket open in case you need to add something. It will automatically close in 2 weeks if no further comment is made.
Best regards
Yannick Gaultier
weeblr.com / @weeblr
This one:
set RS Forms to "Leave as non-SEF"
That is what worked.
Hi
OK, a bit more odd as it should work without it and RSForms is quite a common extension. But glad it's sorted out!
Best regards
Yannick Gaultier
weeblr.com / @weeblr