#kevinh_api

1 messages ¡ Page 1 of 1 (latest)

frozen cloudBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hardy harness
#

hi there!

noble owl
#

hi

#

There is no example for php. only curl

hardy harness
#

as mentioned in the link you shared:

This feature is in private preview. You can request early access by filling in the form below.
so did you request access?

noble owl
#

You mean use the curl to try?

hardy harness
#

Invoice Plans is a brand new feature that is not available to everyone. did you contact Stripe to get access to that feature? if not, you won't be able to use it at all (with curl or php).

noble owl
#

oh...

#

I don't know this

#

where can I get access

hardy harness
#

in the link you shared:

noble owl
#

I have another idea:
The first time, I let the customer pay an initial amount and also inform them that there will be another payment later. Then, when they make the first payment, I save their payment method. At a future date, when the time comes, I automatically charge them again using the saved payment method.
Is this possible?

hardy harness
#

of course yes.

noble owl
#

what is the keyword for this

hardy harness
#

to make a payment while saving the payment method, we call this setup_future_usage

noble owl
#

So if I use this method, it will display a form where the user fills in their credit card and other details?

hardy harness
#

the first thing you need to decide is: how to you want to accept payments? with Payment Link, Checkout Session, Payment Element, something else?

noble owl
#

I think I will go with Checkout Session
This will build everything for me.
If I can use Checkout Session and save payment method for future usage at the same time. It would be really great

noble owl
#

so when the time comes, I just use the saved payment to auto pay for customers?

hardy harness
noble owl
#

This is great. Can you keep this chat session on so I can keep access the info you provide?

hardy harness
#

the thread will automatically close after some time. but:

  • you can continue to view that information even if the thread is closed
  • you can always reopen a new thread if you have more questions about this