Replies: 4 comments 6 replies
-
Ok I've been digging much further now, and I've found this example here which clearly shows how you can confirm exclusively the setup intent in a first step for a First, is my understanding correct that all methods of the Stripe class of your package are inherently linked with the values currently provided vir your input widgets ( In this case, do I understand things correctly that to reach what I want, I have to:
--> Is this flow correct? PS: Yes, I use the older way and not the newer one to store payment method IDs mapped to my customer IDs on my server-side, as my integration prefers manual server-side confirmation. |
Beta Was this translation helpful? Give feedback.
-
Hi, the flow that you described is correct. Make sure to add a customer to the payment sheet, see stripe docs. Other advantage is thatStripe will make sure that the customer is provided with the correct payment methods. |
Beta Was this translation helpful? Give feedback.
-
Hi @remonh87 Cheers, but is this required even if you provide the customer ID to the call used to initiate a new setup intent on the server-side according to the docs? Shouldn't that be enough to make sure that the newly created setup intent (of which you'll then use the obtained client secret) is mapped to the correct customer? And thus also the payment method added via that setup intent? |
Beta Was this translation helpful? Give feedback.
-
@remonh87 Obviously not intending to be rude; but could you may answer my last question? I'm somewhat confused as I've asked how to store a new payment method without a payment intent / paying, but the link you've mentioned in your answer links to a page of the stripe docs explaining how to capture a payment intent with their checkout without mentioning a setup intent anywhere? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? (please describe)
I've currently implemented stripe on my website to save a payment method (credit card, google pay and / or apple pay) for later usage, without directly charging at the moment the payment method is stored. According to the custom flow described here: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements
Describe the solution you'd like
I've been checking your docs about the payment sheet, card field and card form field used to store payment method data and directly submit that to stripe; yet all of these involve an associated payment intent, which I don't have at the moment the payment method is stored.
Describe alternatives you've considered
I cannot see any alterantive for this; I'm locked at the point where I have successfully initiated a setup intent for an initiated stripe customer, and thus have the setup intent client secret ready on the client-side. What remains is sending the payment details with that setup intent client secret to stripe to obtain the payment method ID token in response, as it's done in the link provided above using their HTML + Js - way.
Additional context
Or is what I want already possible with your package?
Beta Was this translation helpful? Give feedback.
All reactions