#jayvir_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
- jayvir_api, 4 days ago, 10 messages
- jayvir_api, 5 days ago, 18 messages
@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
Sorry I don't follow the question. Could you summarize clearly what are you doing, what do you expect and what happenned instead?
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 ?
You can listen to payment_intent.succeeded or payment_intent.payment_failed for the succeess/failure of a PaymentIntent
i want to retry after 3 days for 3 times
how to do that ?
i am already listing to above events
You can try this setting on https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
with api not using dashboard
You want to selectively apply that custom rule to some PIs, not all the PIs?
this will happen for all ?
it is account level for connected accounts ?