#yen6305
1 messages · Page 1 of 1 (latest)
Do you see errors on your Stripe API history? on https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
No just 200 ok, but that was from testing locally
let paymentIntent = await createPaymentIntentApi(cart.key, metadata, vatRate, vatData).catch(
(error) => {
setMessage(error.message);
setIsLoading(false);
return;
}
);
console.log("Created stripe payment intent: ", paymentIntent);
const { clientSecret: clientSecret } = paymentIntent // response.data
When testing with stripe CLI it logged the payment intent next to 'Created stripe payment intent'
But when testing on production I see this in the browser:'Created stripe payment intent undefined'
But then did it generate Create PaymentIntent API on your Live mode?
If not then your server code doing it might be errored somewhere
Check server log!
Oh I am seeing the problem
payment_intent_invalid_parameter - payment_method_types
The payment method type "paypal" is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use.
Was this useful?
Yes
No
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I am using PaymentElement
And I added paypal in the options array
I've checked https://dashboard.stripe.com/settings/payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But I am not seeing paypal is that correct?
Got activate it but it is not on the list
Okie, what country is your Stripe account?
Netherlands