#ebellotpu6_api

1 messages ¡ Page 1 of 1 (latest)

hot bronzeBOT
frail copperBOT
#

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.

hot bronzeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257295585804025866

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

hallow blade
#

Hi, let me help you with this.

#

What's not working for you exactly?

graceful hull
#

I want to know how to retry a payment for a subscription using the stripe api

hallow blade
graceful hull
#

but for example, imagine I have a customer that is trying to rent a storageroom on my website. He fill the paymentElement with a valid paymentMethod but then when the API tries to create the subscription, something wrongs happens and the subscription reminds in incomplete status. We notify to the customer that the subscription coudn't be collected successfully and he retries the payment. Our API detect that a subscription already exists for this customer and this product, so we don't want to create a new subscrition, instead, we want to modify the subscription if its necessary, and then try the payment again.

#

?

hallow blade
#

If it's a card payment, it will fail immediately so the customer will know. If it's a async payment method type, e.g. bank_transfer, the you will get an invoice.payment_failed webhook event, and then you can send a link to the Invoice.hosted_invoice_url: https://docs.stripe.com/api/invoices/send

graceful hull
#

yes

#

but, if it's a card payment for example, how can I retry the payment of the invoice without create a new one? From the API, without using the link

hallow blade
graceful hull
#

okey, I will try it