#SalteeSam
1 messages ยท Page 1 of 1 (latest)
That would be determined by the tax code of the product for that line item
So you would need to ensure the "product" you use for the tip line item is a suitable tax code for the appropriate treatment
can the tax code be set when the checkout session is created? so for example something like this
stripe.checkout.Session.create(
.....
"line_items": [{
"name": "tip",
"price: "0.50",
"tax_code": "txcd_00000000"
}]
.....
)
Optionally yes, using price_data and product_data:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-tax_code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But if you expect repeat use for this setting up a product is likely a good idea
okay, the issue is that it is for connect accounts, so then we would need each connect account to have it set up, and then we'd need to keep track of the product ids for every account
Hi there ๐ taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
If you are creating the Checkout Session for them using either Destination charges or Separate Charges & Transfers, then you can just use the Products/Prices from your platform account. But if you're creating Direct charges, then yeah each account would need to have their own Products/Prices created
yes they are direct charges. So in that case, it would probably be better to simply set the tax code for the tip line item every time we create a checkout session?
That would work
okay thank you for your help! have a good rest of your day โ๏ธ