#sreekanth_subscription-invoice-payment-3ds

1 messages ยท Page 1 of 1 (latest)

graceful smeltBOT
obtuse roverBOT
#

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.

graceful smeltBOT
#

๐Ÿ‘‹ 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/1240246759364755506

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

celest dust
#

hi

#

we integrated stripe subscription but for some users it is showing "This customer has initiated payment, but the funds have not been confirmed yet. This can take up to 4 business days."

regal osprey
#

Can you share the sub_xxx ID with me

celest dust
#

sub_1PGeabJKyfLg4PX0qwZZXX2m

regal osprey
celest dust
#

okay

#

it will ask only once right when user try to pay first time ?

#

suppose if he subscribed for monthly payment for one year... this authentication will ask only once right ?

regal osprey
graceful smeltBOT
#

sreekanth_subscription-invoice-payment-3ds

celest dust
#

how can i handle subsequent payments if it need authentication from bank?

#

any stripe doc ?

regal osprey
#

Well you can enable our automatic emails: https://docs.stripe.com/billing/revenue-recovery/customer-emails#failed-payment-notifications

Alternatively you'd implement a flow to bring the customer back on-session and retry the payment. Listen for invoice.payment_failed events, send them and email or something that opens a pagew in your app that collects card details and then call confirmCardPayment using the intent from the invoice event

Configure Stripe to automatically email your subscription customers when something goes wrong with their payment or payment source.

celest dust
#

okay thanks... let me check this

#

can i send email based on payment_intent.action_required ?

#

using stripe automatic email

regal osprey
#

Well invoice.payment_failed will fire then payment_intent.action_required fires so it's redundant really

celest dust
#

How would users know the reason for a failed payment?

regal osprey
celest dust
regal osprey
celest dust
#

Will the entire payment be handled by Stripe through this email?

#

and is it possible to disable bank authentication ?

regal osprey
#

Yes, it'll send them a URL to a page to retry the payment

celest dust
#

okay

celest dust
regal osprey
#

Which webhook?

celest dust
#

In the backend, we'll listen for webhook notifications from Stripe to update the payment status in our database

regal osprey
#

Yes, invoice.paid etc will fire assuming payment is successful

obtuse roverBOT
celest dust
#

okay thanks

#

any difference in invoice.payment_succeeded and invoice.paid ?

fossil citrus
#

yes, invoice.paid is more accurate(for example handling invoices that are paid "out of band")

celest dust
#

okay

#

is it possible to check 3dsecure email notiffication in the test mode ?

fossil citrus
#

you can click the ๐Ÿ‘๏ธ icon in the Dashboard page from your screenshot, to see what the mail looks like

celest dust
#

i need to test this integration that's why...

#

i need to test full flow for test 3dsecure card.... is it possible ?

fossil citrus
#

don't think so, that's why I suggested the ๐Ÿ‘๏ธ

celest dust
#

okay

#

thanks...let me check this integration then

celest dust
#

here the issue is due to 3d secure ?

fossil citrus
#

sorry, what's the question/issue exactly?

celest dust
#

earlier i asked what is the reason for the status "This customer has initiated payment, but the funds have not been confirmed yet. This can take up to 4 business days.

#

they said it was due to 3dsecure authentication...

#

can you check above response for that ...

fossil citrus
#

sorry I'm just unclear why you ask me and paste all that JSON when you can check things yourself

#

you can look at the status of the Invoice, and of the PaymentIntent, for example.

celest dust
#

As you can see in the JSON above, it is showing 'status: incomplete.' How can I be sure that the issue is due to 3D Secure?

fossil citrus
#

latest_invoice->payment_intent->status == "requires_action

celest dust
fossil citrus
#

no, because you're not using expand so those fields are not returned. But they are present and if you make API calls to retrieve the Invoice or the PaymentIntent you'll see that.

celest dust
#

When a user makes a one-time payment using the same 3D Secure card, it does not ask for authentication. It only asks for authentication when I try to create a subscription for the same card in an off-session... any reason ?

celest summit
#

hi! I'm taking over this thread.

#

it's the bank that decide to ask 3DS or not. so your application needs to handle both case (3DS requested or not).