#supergrover122_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/1344404620327522408
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ that version of Checkout is very old and deprecated and shouldn't be used for new integrations.
I'd suggest using Checkout Sessions, or the Payment Element from stripe.js instead.
https://docs.stripe.com/billing/subscriptions/build-subscriptions
Are both in the API at https://github.com/stripe/stripe-php/releases ?
What is the easiest way to charge a card and enable a subscriptions for the charge if checkout.js is no good now?
That SDK does support the creation of Checkout Sessions, as well as the creation of Subscription objects, however, it's only for the backend-portion of the flow.
If you're using Checkout Sessions, you'll direct your customer to the URL that we generate, unless you're using our Embedded Checkout Sessions.
If you're using Embedded Checkout Sessions or the Payment Element, then you also need to include stripe.js for the frontend side of the integration:
https://docs.stripe.com/js
All of these integration paths, along with several others, have step-by-step instructions for building them in the guide that I linked to initially.
The easiest, most low-code way, to create a Subscription though is going to be via a Payment Link:
https://docs.stripe.com/payment-links
ok. thanks.