#stormfox-payment-failed

1 messages ยท Page 1 of 1 (latest)

kindred ocean
#

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

simple thunder
#

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#)

kindred ocean
#

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

simple thunder
#

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

kindred ocean
#

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

simple thunder
#

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)

cloud warren
#

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?

simple thunder
#

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

cloud warren
#

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

simple thunder
#

don't worry ๐Ÿ˜€ sub_1Jly77HGKjXpsagTYB0RY5no

cloud warren
#

Hmmm it looks like something is delayed on our end and the subscription hasn't actually been cancelled yet

simple thunder
#

sub_1JlzSKHGKjXpsagT3ihf7U8n

#

i generate the call with c# and redirect with stripe cli to the webhook site

cloud warren
#

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

cloud warren
#

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

simple thunder
#

@cloud warren thanks you for your patience, i'll give a look to my settings ๐Ÿ˜€