#mathew
1 messages · Page 1 of 1 (latest)
Hi! What's the question?
"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"
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
Could you please share the PaymentIntent ID pi_xxx?
By personal/company profile you mean Stripe accounts?
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
Can I please get the PaymentIntent ID pi_xxx?
not sure about that as i do not have any server calls so far for loading the stripe payment element
Where do you see this error?
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)
Hey! Taking over for my colleague. Let me catch up.
sure
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.
Can you share the PaymentIntent Id? or you are using Checkout Session ?
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
Can you share the guide you are following please ?
What PaymentMethod activated you can see here ?
https://dashboard.stripe.com/settings/payment_methods
setupintent migration flow
error i get with this account in my browser (Chrome Version 113.0.5672.93 (Official Build) (64-bit))
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.
yes i have verified, iam using test keys only
Can you share the code you are using ?
gime a min
// 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
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Could you please summarise the latest question?
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.
payment-element is not loading for a specific account
This way we only work with integers.
You can fix this here:
parseFloat($("#PaymentAmount").val())
to
parseInt($("#PaymentAmount").val() * 100)
ok.let me check this
Please let me know if this works for you.
just building the sol. just wondering how it worked in that case of the other accountId 🙂
the code is same
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?
yes it works now!
payment methods wer same. only diff i see is the region was Asia for the working profile
Happy to help. Please, let me know if you have any other questions.
Thanks a lot!