#kevinh_api

1 messages · Page 1 of 1 (latest)

narrow basaltBOT
#

👋 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/1410211647364268032

📝 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.

north vault
#

I use
$checkout_session = \Stripe\Checkout\Session::create(
And I know there is a button for the customer to save the payment method for me and themselves

#

My question is, can I force them to click the button to save the payment method or they won't be able to pay?

#

In the Checkout Session, set a restriction so that if the customer does not save their payment method, they cannot complete the payment.

crystal idol
north vault
#

This only works in subscription mode right?

crystal idol
#

Nope

#

It only works in payment mode

north vault
#

oh?!

#

Let's me try it now. Wait for me

#

they still need to click the button right?

crystal idol
#

That's Link, which is completely different concept

crystal idol
#

What is it you're trying to do exactly?

north vault
#

Suppose I want to implement a two-step payment flow:

  1. The customer pays the first time.

  2. Stripe remembers the customer’s payment method.

  3. 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 hope I can save the method without their click the button

crystal idol
#

If you want to force the card saving for your re-use then use setup_future_usage. You'll get a reusable PM object you can use for future payments

north vault
#

I will try ti now. wait for me thank you

crystal idol
#

The link directly above

north vault
#

after I test pay, I saw this under a customer info in the stripe dashbaord.
Does this mean I can use this method to charge the customer in the future?

crystal idol
north vault
#

this is great. Thank you!

crystal idol
#

No problem, glad I could help!