#bulbasaur_api
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/1410608326139449427
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
would you mind elaborating a bit, I'm not sure I have the full context
are you using Adaptive pricing?
I didn't opt into anything specifically
this is only related to Adaptive pricing
and Checkout
if you're not using both then you can disregard
I'm using Checkout
currently hosted checkout, migrating to elements
but it seems, from what this is saying, that this is an api-level change to accomodate adaptive pricing, but not only applied to "adaptive pricing" customers or whatever?
Like I said, I checked my payment_intents table I've got locally and not a single payment has currency which isn't USD since May 2025, whereas before then it was quite regular
then you are using Adaptive Pricing
I'm a bit confused
are you or aren't you using Adaptive Pricing?
I didn't opt into anything
how do I know if I am? ๐
I didn't know what adaptive pricing was until a few minutes ago
Adaptive Pricing means that you offer your customers to pay in currencies other than the one you set by default (in your case usd)
would you mind sharing one of the old PIs where the currency is different than USD?
ok I see, I thought it was "automatically converting the currency"
So basically what you're saying is:
- before May 2025, I had adaptive pricing enabled, so I got e.g
eurcurrency payment intents - after May 2025, I of course still have adaptive pricing enabled, but with the latest change, all
currencyis converted for me
so any payment after May 2025 should have no "risk" of being another currency regardless, because if I turned adaptive pricing off it would just mean that I couldn't accept foreign currencies in the first place
you need to look into your payment settings to see whether it's enabled or not
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok, yeah it is enabled
So, just to double check, is what I said above correct?
so any payment after May 2025 should have no "risk" of being another currency regardless, because if I turned adaptive pricing off it would just mean that I couldn't accept foreign currencies in the first place
this is the main thing I want to confirm, whether or not I "can" remove my currency conversion code or not
I'm not sure what your currency conversion code does.
sorry, just for internal book keeping effectively, I was driling from the subscription -> balance transaction
which has some annoying edge cases
so I'd like to remove it if possible
but the idea is that regardless of what currency the customer pays in the details on the checkout session would be in usd
ok right
and then the real currency used for payment would be shared in the presentment_details
and does that apply to other entities like payment_intent / charge? Empirically, it seems to, but I didn't see any documentation about it.
Hi, taking over as my teammate needs to step away. Let me catch up.
The adaptive pricing, in this case 'eur' would be the currency for the PaymentIntent, pi_3RAZ8CJMweHcHQ3L1A5eCT6k and the charge, ch_3RAZ8CJMweHcHQ3L1r40JkIL
right, but now after the May update, is that still the case?
I'll see if I can find one with presentment currency eur
If you're saying you've turned off adaptive pricing, then it would not matter. It would be the currency from the price you passed.
I have not, but the may 2025 update suggests it should auto convert
Can you share an example please?
My teammate was able to confirm that with the newer API version, we do surface that in the PaymentIntent https://docs.stripe.com/api/payment_intents/object?api-version=2025-04-30.basil&rds=1#payment_intent_object-presentment_details and on the Charge, https://docs.stripe.com/api/charges/object?api-version=2025-07-30.basil&rds=1#charge_object-presentment_details