#jan_docs

1 messages ¡ Page 1 of 1 (latest)

coral peakBOT
#

👋 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/1329089042201051146

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

onyx lily
#

To understand how are you creating the Checkout Session

warm girder
#

Hi, unfortunately not, as the request is not executed. The Stripe SDK does not allow to create the session with the payload, which looks like this:

#

$payload = [
'mode' => 'subscription',
// ...
'line_items' => [
[
'price' => $priceId,
'quantity' => 1,
],
],
'invoice_creation' => [
'enabled' => true,
'invoice_data' => ['account_tax_ids' => [
'txi_1QNWtNGq8AgVVRbzK0DjoadH',
'txi_1QNWtNGq8AgVVRbz2xneequM',
'txi_1QNWtNGq8AgVVRbzDq3dwxy7'
]]
],
// ...

onyx lily
#

What you mean by the "Stripe SDK does not allow" ? What error message you are getting ?

#

Ah I see what you mena sorry, by checking the payload

warm girder
onyx lily
warm girder
#

The latter, we want to specify the account_tax_ids for each checkout session (individually).

onyx lily
warm girder
#

Thank you i will look into that.

onyx lily
#

Welcome!