#yen6305

1 messages · Page 1 of 1 (latest)

dense idolBOT
bronze gale
tulip terrace
#

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'

bronze gale
#

But then did it generate Create PaymentIntent API on your Live mode?

#

If not then your server code doing it might be errored somewhere

tulip terrace
#

No I've added the right API key's from live mode

#

And i still get undefined

#

hmm

bronze gale
#

Check server log!

tulip terrace
#

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

#

I am using PaymentElement

#

And I added paypal in the options array

#

But I am not seeing paypal is that correct?

#

Got activate it but it is not on the list

bronze gale
#

Okie, what country is your Stripe account?

tulip terrace
#

Netherlands

bronze gale
#

I see. Let's contact Stripe Support to check on your Stripe account state

#

it might need something to enable Paypal

tulip terrace
#

Yeah

#

How can i contact them?