#dragon.frost
1 messages · Page 1 of 1 (latest)
Hi there!
can I configure the elements provider without creating "options" object in the frontend?
If you are using the deferred flow, you need to provide the amount in the frontend. If you are using the regrular flow, then the amount is set on the backend.
Also is this method of doing deffered intent SCA compliant?
You mean PCI compliant?
The reason I don't want to use the regular flow is because I don't want to create pending intents before user completes the checkout. Is there any suggestions that you can give on this?
Reference Link for my previous conversation: #dev-help message
You mean PCI compliant?
No, I do mean SCA: https://stripe.com/docs/billing/migration/strong-customer-authentication
No, I do mean SCA: https://stripe.com/docs/billing/migration/strong-customer-authentication
I see! Then yes the Payment Element works with SCA.
The reason I don't want to use the regular flow is because I don't want to create pending intents before user completes the checkout.
But what is the issue with having incimplete Subscriptions or PaymentIntent on your end?
I guess my main question is:
if customers do not complete the checkout flow then there can be a bunch of pending invoices right? so what purpose does this solve?
if customers do not complete the checkout flow then there can be a bunch of pending invoices right?
Yes that's true, but you can just ignore them.
And if you really don't want this, then yes you should use the deferred flow.
Can you please send me a link or something that references the usefulness of pending invoices and how to minimize having duplicate invoices as well.
that references the usefulness of pending invoices
There's no usefulness. It's just that the Payment Element needs a client_secret to work in the default flow. And if the first invoide is not paid withing 24 hours, then it will be automatically cancelled.
and how to minimize having duplicate invoices as well
What do you mean by this? If the same customers loads the page with the Payment Element twice, you could reuse the existing Subscription/Invoice instead of creating a new one.
oh cool thanks
Could you please let me know where can I apply discount and trial period configurations on this default flow for creating subcsription?
It's when you create the Subscription itself. For example to add a trial: https://stripe.com/docs/api/subscriptions/create?lang=node#create_subscription-trial_period_days
Wow thank you. That was really helpful.