#mathew

1 messages · Page 1 of 1 (latest)

vague thornBOT
brazen rune
#

Hi! What's the question?

serene cedar
#

"No valid payment method types for this configuration.
Please ensure that you have activated payment methods compatible with your chosen currency in your dashboard
(https://dashboard.stripe.com/settings/payment_methods) and
that the amount (1) is not lower than the currency (usd) minimum: https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts"

See what currencies you can use for making charges and for paying out to your bank account.

#

i get this error

#

im trying this from India, connected to VPN

#

i have my code working for my personal profile, but when i switched to my compnay profile i gte this error

brazen rune
#

Could you please share the PaymentIntent ID pi_xxx?

#

By personal/company profile you mean Stripe accounts?

serene cedar
#

yea, i can see 2 profiles linked to my email

#

sorry im quite new to stripe , so what i tried is with my personal account the stripe control was loading in the web page , when i switched my profile with new profile and client keys i get this error

brazen rune
serene cedar
#

not sure about that as i do not have any server calls so far for loading the stripe payment element

vague thornBOT
brazen rune
#

Where do you see this error?

serene cedar
#

in my console

#

browser console, i get this error

#

when i try t conect with my compnay profile, same works with another profile (linked with same email)

tulip lodge
#

Hey! Taking over for my colleague. Let me catch up.

serene cedar
#

sure

tulip lodge
#

Can you share the accountId that you are facing this issue with ?

#

According to the error, you don't have a valid payment method activated in that account for live mode.

serene cedar
#

acct_1HJcH7IlJuw107r9

#

im trying this in test mode

tulip lodge
#

Can you share the PaymentIntent Id? or you are using Checkout Session ?

serene cedar
#

i do not have any server calls so far, im just trying to load the stipe payment-element in screen

#

earlier our team was using card-element, now i am changing this to payment element, using the migration guide

#

using this accountid everything works(payment element is loaded on screen without any error) -**acct_1MX39kSHTCbM1eDx **

#

to my knowledge the payment methods are activated in botht he account

tulip lodge
serene cedar
#

setupintent migration flow

#

error i get with this account in my browser (Chrome Version 113.0.5672.93 (Official Build) (64-bit))

tulip lodge
#

There is a mis configuration in your account or you are looking to the wrong account dashboard.

#

double check the account you are using, the client and secret key are for the same account. Make sure you are using the test keys and not live.

serene cedar
#

yes i have verified, iam using test keys only

tulip lodge
#

Can you share the code you are using ?

serene cedar
#

gime a min

serene cedar
#

// Create an instance of Elements.
const options = {
mode: 'payment',
currency: 'usd',
amount: parseFloat($("#PaymentAmount").val())

            };
            var elements = stripe.elements(options);
#

this is what i have used

brazen rune
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

Could you please summarise the latest question?

brazen rune
#

What's the value of amount?

#
amount (1) is not lower than the currency (usd) minimum: 

Is it 1?
If so, it means you are trying to charge 1 cent, which is not supported by any payment method types.

#

We use cents to represent amounts in USD so, for example, if you want to charge $1, you need to set amount: 100.

serene cedar
brazen rune
#

This way we only work with integers.
You can fix this here:

parseFloat($("#PaymentAmount").val())

to

parseInt($("#PaymentAmount").val() * 100)
serene cedar
#

ok.let me check this

brazen rune
#

Please let me know if this works for you.

serene cedar
#

just building the sol. just wondering how it worked in that case of the other accountId 🙂

#

the code is same

brazen rune
#

What were the payment method types you saw on the other account?

#

Also, are you sure payment methods are enabled for both accounts in both Test and Live mode?

serene cedar
#

yes it works now!

#

payment methods wer same. only diff i see is the region was Asia for the working profile

brazen rune
#

Happy to help. Please, let me know if you have any other questions.

serene cedar
#

Thanks a lot!

vague thornBOT