#kevinh_api
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/1410193881513066567
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- kevinh_api, 1 day ago, 27 messages
I try this and get this error message:
Fatal error: Uncaught Error sending request to Stripe: (Status 400) (Request req_HOQb64ElAH4dD7) You can only set payment_method_collection if there are recurring prices
I this it only work for subscription mode
You should specify this parameter instead:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-saved_payment_method_options
I think this only save for customers themselves?
Suppose I want to implement a two-step payment flow:
-
The customer pays the first time.
-
Stripe remembers the customer’s payment method.
-
At a future point in time, I can automatically charge them again.
How can I achieve this?
I want to handle this entirely within a Checkout Session.
I will charge them by the method they pay for the first time
I think this only save for customers themselves?
No, you can use that PaymentMethod too
so the payment method saved for both me and the customers?
The PaymentMethod will be saved in Stripe, both your integration and the customer can reuse it later yeah
Do I use it correctly?
No, you need something like this:
saved_payment_method_options: {payment_method_save: "enabled"}
It's an inner object
oh... I see now
I saw the save my payment info... and if I did not choose it, the payment will not be saved. How can I save payment method without customers choosing the button?
How can I save payment method without customers choosing the button?
No you can't, you need the customer acknowdlgement for saving their card details.
so the payment plan is what I really looking for?
I need it to be auto. if they did not click, I cannot charge them
Use the SetupMode then
may I have the link to this?