#Daniel-checkout
1 messages · Page 1 of 1 (latest)
hi! you'd just a line_item with a one time Price when creating the CheckoutSession.
Oh, so it's possible to add it from code
We just have the link straight to stripe checkout
as in, you generated a PaymentLink from the dashboard? As far as I know those are only for a single Price at a time so you can't have them charge for multiple things
We use ```php
\Stripe\Checkout\Session::create
if you use the API it's straightforward, you just pass all the recurring and one time Prices to https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items and it charges for them
ok, confused by your ' just have the link straight to stripe checkout' line then
But yeah if you're creating the Session in code it's really easy to just add an extra line item for a one-time Price. Give it a try
There's a doc on this here: https://stripe.com/docs/payments/checkout/how-checkout-works#mixed
Oh I see, let me take a look. You've been amazing! Thanks so much.
oh neat, I didn't know we documented that explicitly somewhere
Yeah it's pretty new!
Again, thanks a bunch guys! You've all been a blessing :)