Forum Replies Created
-
AuthorPosts
-
Startpoint2020Participant
Thanks! Good to know!
September 17, 2020 at 2:39 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3291Startpoint2020ParticipantHi! Just checking back in to say that we completed the migration to the new server last week and then this week I did the 3 day test subscription as you suggested and everything worked perfectly. After 3 payments, the plugin backend says Subscription Ended. So I think we are back on track. Thank you for all your very patient and helpful assistance with this issue!
August 29, 2020 at 1:59 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3200Startpoint2020ParticipantThank you. I don’t think I changed API Keys or Signing Secrets. However, it is entirely possible that I created the Webhooks on Stripe rather than using the button in the plugin. I don’t recall for sure because it’s been awhile since I set this up, but as I have experience creating webhooks in Stripe for other things (that don’t have such a button) it’s very possible I did it that way.
We are migrating the site to a new server next week. I think I will complete that move before doing the further testing you’ve suggested as then I can also make sure everything is working well on the new server.
If we can keep this topic open for now, I should be able to get back in a week or so with the (hopefully successful) outcome!
Thank you again. Your support has been really good!
August 29, 2020 at 1:55 am in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3198Startpoint2020ParticipantI have 2 identical subscription plans but one is in Test mode and the other is in Live mode. I had used the Test plan back when I was building and testing everything. Once we launched, I turned on Live in General Settings and all the actual subscriptions indicated that they were made for the Live version of the plan. So I think I did everything right when I set this up initially (months ago).
When I did my test webhook earlier today, I did forget to uncheck Live mode in the plugin General Settings before doing it, so I guess that would account for the subscription not found error.
But just now, I DID go in and uncheck Live in the General Settings (so it should be in Test mode) and ran the test webhook again but I still get the same results:
[08/29/2020 1:45:13 AM] – [Sub] Webhook signature successfully checked.
[08/29/2020 1:45:13 AM] – [Sub] Processing “customer.subscription.updated” hook.
[08/29/2020 1:45:13 AM] – [Sub] Searching for subscription sub_00000000000000
[08/29/2020 1:45:13 AM] – [Sub] FAILURE: Subscription not found. Aborting.How can I know the live webhook is going to work with the live subscription plan when the plugin is in Live mode?
Also, why did the webhooks stop working even though the plugin was showing me green check marks like everything was happy?
I want to feel confident that when we relaunch this program this fall that webhooks will be working and customers will not get charged more times than the plan said they should.
August 28, 2020 at 8:24 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3187Startpoint2020ParticipantOkay, I think we are getting somewhere… did all that, and this is what I get in the debug log:
[08/28/2020 8:23:27 PM] – [Sub] Webhook signature successfully checked.
[08/28/2020 8:23:27 PM] – [Sub] Processing “customer.subscription.updated” hook.
[08/28/2020 8:23:27 PM] – [Sub] Searching for subscription sub_00000000000000
[08/28/2020 8:23:27 PM] – [Sub] FAILURE: Subscription not found. Aborting.Is this good or bad?
August 27, 2020 at 11:37 am in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3183Startpoint2020ParticipantDid you see my second reply when I checked the logs again a bit later?
The Raw Access server logs on Bluehost are 2 hours old so that’s why I didn’t see anything from Stripe right away, but when I went back a couple hours later I did see POST entries for my webhook tests. So I don’t think the server is blocking anything.
I checked the htaccess file and it consists only of this:
# Added by provider
Options +Indexes(Not sure what that is but it doesn’t seem like anything that would be causing our issue here)
August 25, 2020 at 11:31 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3181Startpoint2020ParticipantI checked the server logs again a bit later and was able to see my webhook test from this morning:
POST /?asp_hook=test HTTP/1.1″ 200 1245 “-” “Stripe/1.0 (+https://stripe.com/docs/webhooks)”
So that means the server is NOT blocking, right?
And deactivating Wordfence did not help either (still nothing in debug log when I did a test webhook with Wordfence deactivated)
Any other ideas?
August 25, 2020 at 3:38 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3180Startpoint2020ParticipantWe do have Wordfence, so I deactivated that and tested the webhook again, but still nothing showed up in the debug log.
I also checked the raw access server logs. I searched the logs for Stripe and the only hit was a GET line for a dashboard image. No POST lines for Stripe came up.
Does that mean the host (in this case, it’s Bluehost) is blocking it?
However, the log is only for the last 3 hours and doesn’t update instantly, so maybe I need to check it again in a little while to see if it recorded anything about my webhook test from this morning?
Or should I just contact Bluehost and ask them directly whether requests from Stripe are getting blocked? (Maybe you could tell me exactly what I need to ask.)
August 24, 2020 at 6:07 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3173Startpoint2020ParticipantSent the test webhook and Stripe said it was sent successfully.
Viewed the log and all I see is:
[08/20/2020 8:58:14 PM] – Stripe Payments debug log file[08/22/2020 12:16:04 PM] – [Sub] FAILURE: Stripe Subscription Webhook sent empty data or page was accessed directly. Aborting.
8/20 was when I turned debugging on and I assume 8/22 was the other day when I viewed the webhook URL in the browser.
Nothing in the log for today (8/24).
August 24, 2020 at 5:36 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3171Startpoint2020ParticipantWe have not received any emails from Stripe about problems with webhooks (checked spam/junk too).
I checked in Stripe and the webhook URLs appear properly formed and I was able to access it via a browser and got “Empty Webhook data received”
Any other ideas why the webhook is not working with the plugin?
August 21, 2020 at 6:37 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3166Startpoint2020ParticipantWebsite has been online and accessible; no problem there.
Webhooks appear to be properly configured. I see green check marks for both the live and test webhooks.
The Live subscription plan has a price of $20, a billing interval of 1 month, and a duration of 3.
So I think everything is set up correctly as best as I can tell.
Unfortunately, the debug log was not on when the extra payments happened. I turned it on yesterday, but since we won’t be relaunching this program again until sometime in the fall, debug is of no help right now to know what happened in the recent past.Now, I do see something when I go into the actual individual Subscriptions. Under “Payments Made” it says “0 of 3” and under Events, it shows the date the Subscription was created, but Amount next to that says “-” and then there are no further events after that. However, Stripe was taking the $20 at creation and every month after that.
So it seems like there is a communication issues between Stripe and the website? Is that a webhook issue? How would I fix?
Startpoint2020ParticipantI created a regular test product just now (no subscription) and that works. It redirects to my thank you page URL as expected.
For the subscription, I am doing test mode transactions and yes, the subscription plan was created in test mode. I do understand I will have to create a new subscription plan for live mode once we get things working.
I enabled the debug log and tested the subscription again and now, lo and behold, it works! Not sure why it wasn’t working earlier (the blue circle would just spin forever). This time, it still spun for a little longer that I would expect, but eventually the redirect did happen as expected.
-
AuthorPosts