#sahillakhwani_api

1 messages ¡ Page 1 of 1 (latest)

tribal lintelBOT
#

👋 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/1394551481079824545

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

ornate pier
#

Invoice ID is #1D0493F7-0008

opal minnow
#

hi there, could you share with my the invoice ID? it would be prefixed with in_xxxx

ornate pier
#

yes, a second

#

in_1Rfz8kLoz3M8FCeut1417gwC

opal minnow
ornate pier
#

let me check

opal minnow
ornate pier
#

how can I query that payment intent using APIs?

opal minnow
#

Do you mean retrieving it from the API using the PaymentIntent ID?

ornate pier
#

yeah

opal minnow
ornate pier
#

ok, I see the cancelled_at field set to a value, does that indicate this payment intent was cancelled?

opal minnow
ornate pier
#

ok, and the reason is multiple declines?

opal minnow
#

yes

ornate pier
#

ok, what's the solution for this? Should the user check their payment method?

#

And should I raise a new invoice?

opal minnow
#

You will need to raise a new invoice

#

I see that in_1Rfz8kLoz3M8FCeut1417gwC is actually linked to a subscription

ornate pier
#

yeah it is

opal minnow
#

What you could consider is leave in_1Rfz8kLoz3M8FCeut1417gwC as-is for now. Then, raise a one-time invoice of the same payment amount and share the new invoice payment link with the customer for payment. Once the new invoice has been paid, you can manually mark in_1Rfz8kLoz3M8FCeut1417gwC as paid so that the subscription can continue

#

You can then add a reference on in_1Rfz8kLoz3M8FCeut1417gwC mentioning that it was paid using another invoice

ornate pier
#

ok, and Stripe won't try to pay for this current invoice anymore right?

opal minnow
#

Nope. Stripe will not retry payments on in_1Rfz8kLoz3M8FCeut1417gwC anymore. The underlying payment intent has already been cancelled and that's a terminal state.

ornate pier
#

ok, is it possible to mark invoice as paid using API? ( I can find the API, just wanted to know if it is possible)

opal minnow
ornate pier
#

thanks

#

just to confirm, this just marks the invoice as paid and doesn't actually charge the user right?

opal minnow
#

yup! I would encourage you to test it in Sandbox or Test Mode to be familiar with how it works first