#jesa-payment-intent-error

1 messages ยท Page 1 of 1 (latest)

digital crag
#

Sorry can you clarify on this a bit more.

#

What has your USD setup been so far?

orchid beacon
#

@digital crag i have a stripe account that i've used for testing for a long time -- i don't ever recall setting a currency on it.

the only place i can find "USD" in the stripe settings, is under Payout Settings next to the bank account, but it doesn't seem it can be edited

#

i'm just not sure which setting causes this error:

The card_present source type with currency usd is not supported

i want to reproduce that error, and then confirm that my update fixes it

digital crag
#

Exactly what the message lays out, you cannot use card_present and usd here. What call are you getting this error on?

orchid beacon
#

i'm not asking for help how to fix the error ๐Ÿ™‚

i'm asking how to reproduce the error

#

i believe i have a fix but want to confirm it before deploying to production

digital crag
#

Do you have the request ID that you got this error on before? (req_123)

orchid beacon
#

i didn't get it, a merchant on my platform got it. but let me see if i can find it in logs

#

req_0WU88KWOU11Xbn

digital crag
#

Thank you

#

Right so in the body of that request we received from you currency: "usd", payment_method_types: { 0: "card", 1: "card_present" },

orchid beacon
#

yes, i have added a setting in our app where you can customize the currency

digital crag
#

So as long as you create a PaymentIntent with currency set to usd and with card_present in your payment_method_types you will get this error

orchid beacon
#

i want to test with an account using non-USD currency

#

how can i do that?

#

in test mode of course ๐Ÿ™‚

north kraken
#

What's blocking you?

orchid beacon
#

i don't know how to set the currency on the account

north kraken
#

You don't, you create a separate account in Canada and then you will be able to see the error there right?

orchid beacon
#

is it based on the physical address on the account?

north kraken
#

Every Stripe account has a country associated with it, yes

#

you likely have a US Stripe account and your client has a Canadian Stripe account

orchid beacon
#

exactly yes, i wanted to simulate a canadian account

#

from the US

north kraken
#

Just create a brand new account and you can change its country

orchid beacon
#

ok, and just to be clear, can i temporarily edit the country anywhere in my existing account?

north kraken
#

no you can't once the account has already been activated, you need a separate one

#

totally normal, I have hundreds of them :p

#

I have one in each country and then some that use or don't use Connect, some that have a different API version, webhooks, etc.

orchid beacon
#

ok sure, thanks ๐Ÿ™‚

#

appreciate the help, just wasn't sure which account setting caused the currency error

north kraken
#

Are you unblocked?

orchid beacon
#

@north kraken not quite, i'm needing to fill out a lot of details on my new canadian stripe account before i can connect it

north kraken
#

you don't

#

It's all Test mode, you can connect in Test mode

orchid beacon
#

yeah i am connecting in test mode, and it's not allowing me to complete the connection without filling out more details

#

submit button is greyed out, and sections are marked red

north kraken
#

Sorry you never mentioned Connect before and now I'm a bit confused

#

if you use Connect, you can createa CA account via the API and then run a transaction on it

orchid beacon
#

it's connect with standalone accounts

#

mentioned in my original question ๐Ÿ™‚

#

we don't create accounts

dusty spade
#

Hello! To clarify, the easiest way to test this is to use the Accounts API to create a new Standard account and specify the country as CA: https://stripe.com/docs/api/accounts/create

That will create a new Standard account that's connected to your platform in test mode, and you can then immediately make test mode requests with it.

#

That way you don't have to go through onboarding, the OAuth flow, or anything like that.

orchid beacon
#

ok! i'll try it, plz keep this thread open ๐Ÿ™‚

dusty spade
#

Okay, let us know how it goes!

orchid beacon
#

@dusty spade this worked for me, thanks for the help!