#Jogui-Subscription

1 messages ยท Page 1 of 1 (latest)

near summit
#

Hi, do you mean to keep Subscription status as active when the payment failed?

#

When a payment failed I believe the Subscription will transit to past_due and it will try to recover payment due to Retry rule. Is this the timing you want it still be active?

mint summit
#

Yes, I've setup in the dashboard to do 8 retries in a week before fully canceling the subscription

#

But my question, it's if in this extra week, the endDate of the subscription will be updated, or do I have to manage it in my backend, to give a "virtual extension" of the subscription up to a week, meanwhile stripe is retrying the payment, to give the user a good experience and don't break their subscription.

#

We have currently working Gplay and iTunes subscriptions, and they automatically manage to give "extra days" to the end date, if they are retring to charge the payment

#

But in the case of stripe, I don't see how it is managed in the docs

near summit
#

I see. I think we don't modify the billing cycle in case we are still retrying. You might need to extend the billing cycle yourself. Sorry for the inconvenience.

mint summit
#

No problems, I think that I can manage it with our product/strategy department

#

therefore, in Stripe case, the user will lose "capabilities" of the subscription for up to 7 days, and if the payment problem is solved, it will get access again

#

as easy as that

near summit
#

But that sounds like a reasonable feature requests. I will feedback internally. Thanks for reaching out ๐Ÿ‘

mint summit
#

Thank you, is very useful to give the best experience to the customer

#

For sure it's different if the canceled_at flag comes not null, meaning the user don't want to renew, then no need for all this extra work

mint summit
#

Sorry to bother you orakaro, I have another small question, but I don't want to abuse your kindness

#

(btw shingeki no kyogin is awesome haha) ๐Ÿ™‚

near summit
#

sure, np! and thanks ๐Ÿ˜„

mint summit
#

I have a custom Stripe Elements form, where I redirect users with payment information problems during a subscription renewal. As the Payment Intent of the Invoice in PAST_DUE contains a client_secret, I can use that client_secret for the Stripe Element form to invite the user to add a correct payment method.

#

I have all the flow working, and at the same instant the correct payment information is added, the subscription renews correctly and everything works flawlessly

#

The only point, is that if I go to see the payment information of that customer, the last payment information (the corrected one) don't appear as "default payment method", but the initial one, that had problems for renew (for example, a credit card that for each renewal, asks for 3d secure)

#

QUESTION: Is it possible from this Stripe Elements form, that the payment method that is added and solves de payment failure problem, gets automatticaly converted to the "default payment method"?

#

I don't see in the api docs for stripe elements an option, and as I'm using the PI.client_secret, I cannot change information of this PI

near summit
#

Setting to default payment method is not automatically done. You would need to listen to webhook events to set it yourself, AFAIK

#

like, when that Payment is confirmed succeed, there should be a payment_intent.succeedevent with used PaymentMethod Id

mint summit
#

then, could I lister for all payment_intent.succeed

#

and doo like a loop, where I get the PaymentIntent and default that payment method to the user

#

for all paymentIntents.succeed, for example

#

then im sure that the LAST VALID PAYMENT_METHOD is saved as the default one used in renewals

#

for all customers

near summit
#

Yeah that could work. Theoretically if there is no scenario of payment_intent.succeed that you don't want to set default ๐Ÿ™‚

mint summit
#

It's a very vanilla implementation of subscriptions with 2 plans, 3 months and 1 year

#

I must say, and I've been working integrating payment gateways for the last 3-4 years, that your backend is just awesome

#

the finest arquitecture i've seen, much better than gplay and itunes for sure haha