#DrE-checkout

1 messages · Page 1 of 1 (latest)

woeful haven
#

👋 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

weak kraken
#

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"
  }
}

knotty oracle
#

the error is quite self explanatory here

#

if you read the message it tells you exactly what to do right?