#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/1409462782432383027
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
hi
I want to implement this with php api
https://docs.stripe.com/invoicing/payment-plans?testing-method=with-code
There is no example for php. only curl
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?
You mean use the curl to try?
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).
in the link you shared:
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?
of course yes.
what is the keyword for this
to make a payment while saving the payment method, we call this setup_future_usage
So if I use this method, it will display a form where the user fills in their credit card and other details?
the first thing you need to decide is: how to you want to accept payments? with Payment Link, Checkout Session, Payment Element, something else?
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
yep you can with this parameter: https://docs.stripe.com/api/checkout/sessions/create?lang=php#create_checkout_session-payment_intent_data-setup_future_usage
so when the time comes, I just use the saved payment to auto pay for customers?
yes, this is covered here: https://docs.stripe.com/payments/save-during-payment#charge-saved-payment-method
This is great. Can you keep this chat session on so I can keep access the info you provide?
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