#zakmckraken_subscription-deferred-intent
1 messages Β· Page 1 of 1 (latest)
π 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/1379119172348543141
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi π I don't believe that's possible, because you're setting mode to setup, so the wallets know you aren't processing a payment immediately and therefore aren't showing an amount to the customer.
I don't think it will work, but let me try something on one of my test pages and get back to you.
My attmpt at a workaround also didn't work, so I don't think this is possible.
Is your plan to collect Payment Method details via a Setup Intent, and then immediately create a Subscription using that Payment Method?
Hi Toby
yeah that's what we have been doing. We send the payment method id to the backend and process things in the backend
sometimes it's through an invoice (when it's only products), sometimes it's through a subscription
What you're seeing is expected then.
Did you have motivation for building the flow this way? Typically it's not what I'd recommend.
Instead I'd usually suggest creating the Invoice/Subscription first, and use the client-secrets of the intents that those generate to use the Payment Element to process the associated payment.
so the original implementation, before Stripe Elements was introduced, was doing things similarly. in this version we didn't want to create unnecessary data or give unnecessary access until the payment was approved
it's unfortunate because it works fine aside from this $0 showing up in the Google Pay prompt
We do have a flow where you can use the Payment Element to collect payment method details before creating the Subscription object:
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription
It's similar to the flow you're already using for your Setup Intents (or at least it seems that way since you're initializing the Payment Element with a mode of setup)
Yeah, currently we really just collect the payment method id and then send it to the backend to finish processing and create the order/subscription
oh I see this one has a "subscription" mode
that could work, but since we also support payment methods like iDEAL I wonder if that would break that flow...
Hello π
I"m stepping in as my colleague needs to go soon
Hi, no worries
There are a few payment methods that don't work with this approach and we call those out in our doc
This integration path doesnβt support BLIK or pre-authorized debits that use the Automated Clearing Settlement System (ACSS).
But iDEAL should convert into a SEPA Debit payment method that you can use for off-session payments.
We handle that part internally for you
yeah iDEAL and 3DS already work with our implementation
I was just wondering if they would still work if we switch to the suggested implementation
Yes, the revised apporach in the docs my colleague shared should not impact 3DS or iDEAL payments.
the approach we are using, just for the sake of clarity, is based on https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription
That is the doc my colleague shared and the one I am referring to
but I guess we used type setup instead of sub
(yeah sorry just realized it's the same link I had added as a comment in the code :D)
Ah yeah, if you use subscription instead that will allow you to preview the payment method first without having to create an additional setup intent
And you really want to be explicitly confirming setup intents and/or payment intents over just creating payment methods
will that affect the situation where the user is ordering a subscription and a product at the same time? I guess not, we would get a payment method for the sub that we can use in the invoice?
I'm guessing you mean that the user should really be aware of what the charge is going to be when going through Google Pay/Apple Pay, I agree
ordering a subscription and a product
That phrasing does not make sense. Subscriptions are still relating Products to Customers. Do you mean a payment that includes both a one-off payment and a Subscription?
I'm guessing you mean that the user should really be aware of what the charge is going to be
No, I mean that you should be using our Stripe.jsconfirmmethods over creating payment methods because it will better handle next actions.
yes sorry
OKay and what do you mean by "will affect"? Are you still referring solely to the amount rendered in the Google/Apple pay modal window?
yes
Have you tried doing this in test mode yet?
I'll do that soon and reach back if there is an issue.
I appreciate the help!
I'm just hoping we dont have to change too many things because QA is gnarly π (and our QA person is on vacation)
Okay yeah, I can understand the hesitation there π
hopefully we just change "setup" to "subscription" and it all works π