#Iliyan

1 messages ยท Page 1 of 1 (latest)

raven breachBOT
elder adder
#

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?

hexed karma
#

That doesn't seem to be the case though... I've got another successful payment using the same item and coupon

elder adder
#

Can you share the ID of the request as well as the other example you're comparing it against?

hexed karma
#

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.

elder adder
#

Thank you for those details, this does look odd. Are you able to reproduce this behavior in test mode as well?

hexed karma
#

Nope :/

elder adder
#

Hm, and those requests are for the same Customer.

hexed karma
#

Nope, it's a different customer

elder adder
#

Ah, apologies, thank you for that catch.

hexed karma
#

no worries ๐Ÿ™‚

elder adder
#

For the Customer that you're encountering problems with, are you expecting to accept usd payments from them?

hexed karma
#

Yep

#

We're only accepting USD payments

elder adder
#

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?

hexed karma
#

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

elder adder
#

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.

hexed karma
#

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

elder adder
#

No, at least not via the API. The currency can only be manually set through the dashboard.

hexed karma
#

I understand. Are there any other possible steps that I can take in order to prevent that happening in the future?

elder adder
#

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.

hexed karma
#

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.

elder adder
#

That works.

hexed karma
#

Thank you and have a good day/evening! ๐Ÿ™‚

elder adder
#

Perfect! I'll be in touch!