#Iliyan
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ it sounds like there is a mismatch between the currency of one of the line items that you're working and the Coupon that you're trying to apply to it. Does the error resolve if you use a Coupon of the same currency?
That doesn't seem to be the case though... I've got another successful payment using the same item and coupon
Can you share the ID of the request as well as the other example you're comparing it against?
Sure
Unsuccessful one: req_t7fMb4htXJ263A
Successful one: req_CwVlLiZdaih4k5
We have just a single price. It's the first time that's happening to us.
Thank you for those details, this does look odd. Are you able to reproduce this behavior in test mode as well?
Nope :/
Hm, and those requests are for the same Customer.
Nope, it's a different customer
Ah, apologies, thank you for that catch.
no worries ๐
For the Customer that you're encountering problems with, are you expecting to accept usd payments from them?
My hunch is that the currency of the discount is clashing with the lack of currency on the Customer, but the server is a bit busy at the moment so I'm struggling to find time testing that.
Would you be willing to manually set the customer's currency via the dashboard to usd and then attempt the Invoice creation request again?
Of course, give me 1 minute
You're right, no currency has been set
Usually all customers have been created with USD set as default currency so far
has anything changed?
Or at least it seems it's been set to USD automatically for most of our users
No, usually customers are created without a currency and that gets set when their first invoice/subscription is created.
For instance, your other customer had it set when this request was made to create an Invoice for them:
https://dashboard.stripe.com/logs/req_tOin154tfIokM6
But I'm realizing that also seems to contradict my theory if currency wasn't set for them when that Invoice was created, but it didn't error despite a coupon being provided.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah, really strange. We haven't really touched the billing part of our app and never had any issues with that ๐ค
I am curious whether new users will also experience the same issue
Is it possible to set the currency when creating the customer itself?
or at least have a fallback currency
No, at least not via the API. The currency can only be manually set through the dashboard.
I understand. Are there any other possible steps that I can take in order to prevent that happening in the future?
Honestly I'm still not sure what caused this occurrence, and I think investigating that will require more bandwidth than I can currently offer here. Would you mind writing into our Support team regarding this, and mentioning my name.
https://support.stripe.com/?contact=true
Let me know once you do and I'll grab the case so I can continue to dig in when I log off here.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Okay, will do ๐ thank you
Should I mention the Thread or some ID so it'd be easier to find this thread?
Alrighty, I sent the thread message link.
That works.
Thank you and have a good day/evening! ๐
Perfect! I'll be in touch!