#manux-paymentmethods-eur
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Are you creating the Intent with support for more than just the card payment method?
Do you have more payment methods enabled on your account?
const paymentIntent = await stripeClient.paymentIntents.create({ amount: calculateOrderAmount(items), currency: "usd", automatic_payment_methods: { enabled: true, }, });
Yes I have more payment methods enabled
I was also trying to pass the methods like so:
const paymentIntent = await stripe.paymentIntents.create({ amount: 1099, currency: 'eur', payment_method_types: [ 'bancontact', 'card', 'eps', 'giropay', 'ideal', 'p24', 'sepa_debit', 'sofort', ], });
But the request fails if I do.
Can you share a payment intent creation request ID?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
"id": "pi_3MYZ8QKPF1lmFQxD0n6shTQt",
This is for a 200 response
(I didn't know about these logs, I'm seeing the errors myself now ๐ )
You can see in the API request here: https://dashboard.stripe.com/test/logs/req_zkENiXqM6wmYoN that the only payment method type provided was card
Yeah, however changing the currency to "eur" did make the other payment methods show up
It was failing because these payment methods only accept euro as a currency
I think I can take it from here though, thanks a lot for showing me where to see the logs ๐
Those logs are a big help in figuring out what's going on. Best of luck!
Thanks!
@jagged orbit one more thing
How do I show apple pay and google pay as well?
is it another category different to payment_method_types?
I have them activated on the dashboard
but they don't show automatically
manux-paymentmethods-eur
Apple Pay and Google Pay are the same as normal card payments. They will show automatically if you are on HTTPS (required) and have them enabled in your Dashboard. Also there are extra steps for Apple Pay.
See https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay for more details