#stormfox-payment-failed
1 messages ยท Page 1 of 1 (latest)
you have to bring your customer back on your webpage and collect a new card from them, and yes Stripe Checkout is a good way to collect their card details
you can build your own payment form with Elements as an alternative
But is possible from stripe checkout update a subscription (the question is because i always see stripecheckout used to create something new (payment, subscription..i use c#)
with Stripe Checkout, you just collect a customer's card
Your code then needs to manually update that card on the customer's subscription
in this case you will be using "mode: setup" of Checkout, which doesn't result in a payment
OK I get it, so with this scenario we can use StripeCheckout to collect only the payment data, send the payment data to the backend, update with stripe CUSTOMER_API and then the failed payment should automatically be retried
Another little question, i try to use CancelAtPeriodEnd = true, I see in dashboard that the subscription is scheduled to be deleted by i don't receive any event in webhook
the customer.subscription.deleted event will fire when the Subscription is canceled at period end
You should have seen a customer.subscription.updated event at the time of the sub update
Thanks you for your patience ๐ and if I create a new sub with trial_end=now + 2min and CancelAtPeriodEnd = true after 2 min i receive something? The question is because in my mind I can use period_end with a trial and when expire use a fresh chekout session collecting all data for the new sub (and coupon etc)
Hello! (just hopping in since @kindred ocean had to step away)
You're asking what happens if you create a subscription that cancels in 2 minutes, and then you make an update request to set cancel_at_period_end: true after those 2 minutes?
Maybe i not understand the doc, I create a sub with trial end in 2 minutes and in the same call CancelAtPeriodEnd=true, so not an update to a previus created sub
what i expect , but maybe i'm wrong, is that after two min the sub is scheduled to be deleted (and deleted) and some event arrive at the webhook, but i don't reveive nothing
Thanks for clarifying - I just misinterpreted your earlier question. Yes, if you set both of those in the same call then I would expect the subscription to be canceled at the end of those two minutes. Do you have the ID of the subscription where you're not seeing this work
don't worry ๐ sub_1Jly77HGKjXpsagTYB0RY5no
Hmmm it looks like something is delayed on our end and the subscription hasn't actually been cancelled yet
https://webhook.site/#!/7c0c101c-cf4e-435c-9f92-51c5e005fc2c/67cb4e4e-9a9e-4242-b5cb-4c39a2c64119/1 this is the webhook log for the second try i made
sub_1JlzSKHGKjXpsagT3ihf7U8n
i generate the call with c# and redirect with stripe cli to the webhook site
Yeah this just looks like an issue on our end where the process that is cancelling these subscriptions for us is getting delayed - let me see what I can find to confirm that's the issue
I'd suggest contacting support at https://support.stripe.com/contact for more help with this - it looks like some things have been disabled on this account, which is why you don't see these subscriptions automatically cancel
@cloud warren thanks you for your patience, i'll give a look to my settings ๐