Hi folks! I’m having an issue and have been hacking away at it for a few days, with no success, so hoping someone here might be able to help
Discourse 3.4.0.beta1-dev
Subscriptions 2.8.1 - f0b4984
Docker install on Linux VM
I’ve installed and activated the subscriptions plugin, and it works most of the time when using the built-in pricing table (occasionally a user is not added to groups after a sub, but that’s a separate issue I guess).
However, I really need to use the Stripe pricing table and checkout for the familiar UX and trust it brings. To this end I have everything set up for webhooks, with all the secrets etc configured (currently using test mode so using test mode keys and secrets).
I can successfully go to the subscription page, go through the checkout flow from the pricing table, and check out with the test cards.
However, this results in no subscription being created in Discourse and no change in user’s groups, and looking at the web hooks in Stripe’s dashboard I see that they are getting a 422 response with the body:
{
"errors": [
"customer not found"
]
}
I’ve tried this with a few different users now, and the result is always the same.
Having looked in the database, I’m not seeing the customers noted in the Stripe webhook in the discourse_subscriptions_customers
table, and no corresponding subscription in the discourse_subscriptions_subscriptions
table either - which I guess might be expected since the webhook call is never being processed?
FWIW I have verified Stripe webhook calls can succeed in general - if I have the “use Stripe pricing table” setting disabled, and go through the built-in checkout to create a subscription then everything is fine - and if I then cancel the subscription from Stripe then the customer.subscription.deleted
webhook comes through no problem.
Hoping I’ve just done something silly here and it’s not set up correctly, but really struggling to figure out what I need to do to get it working.
Thanks in advance!
Ross