#Natalia90
1 messages · Page 1 of 1 (latest)
in general, we are looking to display any kind of problem that can appear during payment. The most frequent error we get is 3D secure checks
the url we get once the payment requires additional checks is invoice.stripe.com
the url is taken from stripe event invoice.finalized, so maybe we need Invoice, rather than 3DS
I am not quite following. Hosted Invoices are very different from 3DS pop-up. I don't think you can put them in one category like this.
Could you please share more details about your integration, because I feel like you might be going into a wrong direction.
ok, I will try to. In the application we can attach payment methods (using Card Elements). Later, we can buy subscription plan, using the card attached. However, some of the cards require additional verification (3DS), and the payment is not fulfilled. We would like to display in iframe once situations like this occur. On the backend, there is an event listener that takes the event invoice.finalized and returns url like this if the problem occurs: https://invoice.stripe.com/i/acct_id/test_id?s=ap
I am a frontend deleloper, and unfortunately not familiar with the whole process of listening to events, and what exactly is returned
If you collect the payment method details in the proper way, they will be set up for off-session payments. Meaning, 3DS will be not required.
How do you "attach payment methods" now?
You can collect the Payment Method using SetupIntents: https://stripe.com/docs/payments/save-and-reuse
the problem is not with the collection of the payment
the problem is with the display of stripe urls as ifrmaes
iframes
If 3DS is required when you charge the card it means it is not collected properly.
If you set up the PM with SetupIntents, 3DS will not be required and you will not have to invent a workaround.
I am using your test card to test all cases : 4000002760003184
3DS is just an example, there may be other kind of problem: not enough money on the card, etc.
I would like to display the url that has been returned from stripe event in the iframe
I can redirect the user to another tab in window, but that's not what we would like to do
You can configure your settings to have Stripe send an email to the customer if their Subscription payment fails: https://dashboard.stripe.com/settings/billing/automatic
"Manage failed payments" > "Customer emails"
Stripe will take care of collecting the new PM then.
That's also not suitable
Do you have information if the Stipe urls can be opened in iframe? I suspect that there are some additional security that does not allow that (at least not with the checkout), however I cannot find anything on Invoices or 3DS or other issues
No, it's not designed for iframes.
Why?
I asked developers about more information on how the PM are set, maybe there is some issue
I am asking about the iframe, as it is a requirement of the client, to display any kind of issue with payment in iframe
This is wrong and will not work. Why would the client prescribe something like this without knowing the technical aspects of the project?
In any case, what you can do is take the customer to a page where they can set up a new Payment Method if the old one fails.
You can use SetupIntents for this: https://stripe.com/docs/payments/save-and-reuse
I am not sure, I do not have much to say during the decision making. In case it is not possible (the iframe solution), I will give the feedback to the client, we will double check that the PM is collected properly (to eliminate all the issues), and maybe that will be sufficient.
Ok. For collecting the Payment Methods for off-session use, please refer here:
ok, thank you for you help 🙂
Happy to help!