Simple Membership Plugin › Forums › Simple Membership Plugin › SCA Webhook does not work
- This topic has 6 replies, 3 voices, and was last updated 6 years, 9 months ago by
mbrsolution.
-
AuthorPosts
-
September 25, 2019 at 11:37 am #18965
marwann
ParticipantHello,
I’ve recently implemented new SCA-compliant payment buttons for Stripe subscriptions on my website.
The webhook URL looks like this: https://www.mysite.com/?swpm_process_stripe_sca_subscription=1&hook=1
But it doesn’t look like it actually works. When clicking the link, it says: Fatal Error! No ref_id provied.
Whereas the older webhook (https://www.mysite.com/?swpm_process_stripe_subscription=1&hook=1) displays “Empty Webhook data received.” which is the expected behaviour.
For information, Stripe sent me the following data: 61 requests returned HTTP 500, which is an indicator of a server error on your end.
Also, debug log info:
[09/25/2019 11:40 AM] – SUCCESS: Stripe SCA Subscription IPN received. Processing request…
[09/25/2019 11:40 AM] – FAILURE: Fatal Error! No ref_id provied.Any clue?
September 27, 2019 at 12:44 am #18972mbrsolution
ModeratorHi, thank you for reaching out to us. I have submitted a message to the plugin developers to investigate further your findings.
Kind regards
September 27, 2019 at 7:41 am #18993admin
KeymasterThank you. I will investigate this. You shouldn’t directly just access that link though. That links is where Stripe will send data. So it will only work when actual data is sent to that URL from Stripe after a subscription payment.
Did you select the “Customer” event when you created the webhook?
October 1, 2019 at 11:34 am #19010marwann
ParticipantHello,
Yes, I know I should not access the link directly, but the problem lies somewhere else (no ref_id provided).
When adding the webhook to Stripe, I selected both customer and charge events. I got the webhook URL during from the payment button creation in the admin.
Hope that helps
October 2, 2019 at 12:44 am #19028admin
KeymasterThe new version that we released (v3.9.1) has a fix for this so it doesn’t output that “no ref_id provided” error unnecessarily. Please upgrade simple membership to the newest version.
October 3, 2019 at 3:23 pm #19037marwann
ParticipantHi, thanks for your help. It seems the problem has been solved. All Stripe attempts used to fail for the SCA webhook, but now they get a 200 HTTP Response. Thanks very much again!
October 3, 2019 at 10:38 pm #19038mbrsolution
ModeratorThat is great news 🙂
Enjoy the plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.