#jayvir_api

1 messages ¡ Page 1 of 1 (latest)

proud valveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1306150332161724427

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

latent tide
#

@true talon

lets consider my subcription payment failed because of some reason

payment fails then keep subcription as it is dot cancel automatic by stripe

manage failed retry ( 3 times)
retry after 3 days
retry after 6 days
retry after 9 days

example:

retry after 3 times:
lets consider 15 Dec payment failed
then retry on 18 Dec
then retry on 21 Dec
then retry on 24 Dec

#

const subscription = await stripe.subscriptions.create(
{
customer: customerId,
items: [
{
price: priceId,
},
],
payment_behavior: 'allow_incomplete',
proration_behavior: 'none',
default_payment_method: paymentMethodId,
cancel_at: cancelAtTimestamp,
application_fee_percent: applicationFeePercent,
billing_cycle_anchor: billingCycleAnchor,
collection_method: 'charge_automatically',
payment_settings: {
payment_method_options: {
card: {
request_three_d_secure: 'automatic',
},
},
},
metadata: metadata,
},
{
stripeAccount: connectedAccountId,
},
);

using this code

true talon
#

Sorry I don't follow the question. Could you summarize clearly what are you doing, what do you expect and what happenned instead?

latent tide
#

lets consider my subcription payment failed because of some reason

so i want to retry after 3 days for 3 times

like this :
retry after 3 times:
lets consider 15 Dec payment failed
then retry on 18 Dec
then retry on 21 Dec
then retry on 24 Dec

how can i achieve that

how can i get to know this payment was failed previously now it is success using webhook
so i can custom logic that payment is success now

#

i dont know how stripe retries payment & what is duration for same

#

@true talon make sense ?

true talon
#

You can listen to payment_intent.succeeded or payment_intent.payment_failed for the succeess/failure of a PaymentIntent

latent tide
#

i want to retry after 3 days for 3 times
how to do that ?

#

i am already listing to above events

true talon
latent tide
#

with api not using dashboard

true talon
#

You want to selectively apply that custom rule to some PIs, not all the PIs?

latent tide
#

it is account level for connected accounts ?

true talon
#

It's account level. It's a Dashboard settings

#

It will apply to all Subscription under that Stripe Account

latent tide
#

i cant change the settings in test mode ?
@true talon

#

i can update the settings for test connected acoount in test mode ?