#mattwoberts
1 messages · Page 1 of 1 (latest)
What do you mean by 'not getting'? Are the events generated on your account?
The scenario is that some customers are checking out a subscription with a direct debit payment method
(e.g. evt_0ME87JEHSdXPilfDxjmrflKF)
So in our local development we listen for "charge.pending" - and act on that - but you can see here there is no charge.pending event, which seems a little odd to me
Oh hang on, is it because there is a trial period on that sub create?
I'm assuming that's it - the trial means that there will be no charge / invoice until the end of the trial
No, there was an invoice generated and a payment due (which is processing): https://dashboard.stripe.com/invoices/in_0ME87HEHSdXPilfDDy0k4WWg
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hmm, why do you listen for charge.pending? General recommendation for async PMs (like bacs_debit) is to use payment_intent.processing: https://stripe.com/docs/payments/payment-methods#webhooks
Or checkout.session.async_payment_succeeded with Checkout, too: https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification
tbh I'm not sure why charge.pending - you're right that the recommendation is not the same there, so I might change that, I'm just not sure why I didn't see the event happen. But there's a lot going on with this customer, I need to work out the flow of what happened properly I think
Need to head out - I'll dig into it some more and get back to you if I need to, thanks...