#DrE-checkout
1 messages · Page 1 of 1 (latest)
👋 Give me a moment to read up and I'll respond as soon as I can 🙂
1/ You should be able to use Stripe Tax with Checkout
2/ You can use Checkout for subscriptions
3/ I don't think Checkout supports placing a hold and capturing funds later. check the correction below
However for 1/ it seems like you're passing in price ID and trying to create an inline price at the same time which isn't the right way.
You either create a price first and then use price parameter to pass it in as shown in the example here
https://stripe.com/docs/tax/checkout#create-session
or you create price in-line using price_data parameter
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
also correction, it does seem like you can place a hold on a card and capture funds later by setting
payment_intent_data.capture_method to manual
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method
Hi Hanzo
However for 1/ it seems like you're passing in price ID and trying to create an inline price at the same time which isn't the right way. You either create a price first and then use price parameter to pass it in as shown in the example here
Removing the inline price and just using the price parameter resulted in a different error.
A post to the /v1/checkout/sessions API where the request includes:
"mode": "payment",
 "automatic_tax": {
  "enabled": "true"
 },
 "payment_intent_data": {
  "capture_method": "manual"
 },
  "line_items": {
  "0": {
   "price": "price_1LRiTqBdAYGngbu9D4guqhgc"
  }
 }
returns this error:
{
 "error": {
  "message": "Quantity is required. Add quantity to line_items[0]",
  "param": "line_items[0]",
  "type": "invalid_request_error"
 }
}