#clarkeash_error
1 messages ยท Page 1 of 1 (latest)
๐ 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/1424723782790152243
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
array:20 [
"id" => "price_1RtV3Q9SvzYQoTk5fuRrN6H6"
"object" => "price"
"active" => true
"billing_scheme" => "per_unit"
"created" => 1754577868
"currency" => "usd"
"currency_options" => array:3 [
"eur" => array:4 [
"custom_unit_amount" => null
"tax_behavior" => "unspecified"
"unit_amount" => 301900
"unit_amount_decimal" => "301900"
]
"gbp" => array:4 [
"custom_unit_amount" => null
"tax_behavior" => "unspecified"
"unit_amount" => 252000
"unit_amount_decimal" => "252000"
]
"usd" => array:4 [
"custom_unit_amount" => null
"tax_behavior" => "unspecified"
"unit_amount" => 320000
"unit_amount_decimal" => "320000"
]
]
"custom_unit_amount" => null
"livemode" => false
"lookup_key" => null
"metadata" => []
"nickname" => "One Time"
"product" => "prod_Sp9M1kIq5thYmb"
"recurring" => null
"tax_behavior" => "unspecified"
"tiers_mode" => null
"transform_quantity" => null
"type" => "one_time"
"unit_amount" => 320000
"unit_amount_decimal" => "320000"
]
This is the price object if it helps
hey there! looking into this now
okay thanks
so the first thing to note is that currency_options on the Price object refers to manually configured localised currency options
https://docs.stripe.com/payments/checkout/localize-prices/manual-currency-prices
this is a feature specific to Checkout/Payment Links, where the Price has a primary currency, but then can also support other currencies that will be presented to the customer in the Checkout page, based on the browser location
for Quotes/Invoices, the top-level currency property on the Price object is used, since there's no Checkout page to localise
so in short, you're correct, Quotes don't support these currency options
Thats a shame, as this does work with invoices so I am not sure its due to localisation
I did:
$invoice = $this->stripe->invoices->create([
'automatic_tax' => ['enabled' => true],
'customer' => $customerId,
]);
$this->stripe->invoices->addLines($invoice->id, [
'lines' => [
[
'pricing' => [
'price' => 'price_1RtV3Q9SvzYQoTk5fuRrN6H6',
],
'quantity' => 2,
]
]
]);
and that worked fine for an invoice
sorry, you're correct that the root cause isn't localisation, but I just checked a little deeper and this is a known gap on our side
the gap is specifically that quotes do not support multi-currency prices
Okay, Is this on a roadmap? or is there no expectation of this gap being closed?
it's in our team's backlog but I'm afraid there's no ETA to share for implementation
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
I think this is covered, I guess this makes sense for me to pass onto my stripe account manager so they know this is a desired feature
perfect if you already have a contact with Stripe please do reach out
okay, thanks for your help