#w3ever

1 messages · Page 1 of 1 (latest)

sturdy roverBOT
tender plaza
#

Hello. I'm integrating Express Checkout Element in my app (react)

#

I've followed this guide correctly but after confirm paypal, when redirect to my app, I've got these error.

#

Uncaught (in promise) IntegrationError: To use createPaymentMethod with the Express Checkout Element, your elements instance must be created with paymentMethodCreation: 'manual'.

#

Please help me. what's wrong?

tender plaza
#

let me check.

#

NO. I'm using useElements hoook.

#

I'm using React.js

hasty geode
#

Ok, then you just pass the parameter to your <Elements /> provider:

<Elements options={{ paymentMethodCreation: 'manual' }}>
tender plaza
#

not js.

#

let me check.

hasty geode
#

All the options/parameters there are interchangable with React props

tender plaza
#

thank you. but. I've got another error.

#

IntegrationError: You cannot have paymentMethodCreation: 'manual' and 'paypal' enabled at the same time. You can either turn PayPal off in your Dashboard, or specify paymentMethodTypes on stripe.elements to not include 'paypal'.

hasty geode
#

Seems pretty verbose to me. You can't use that parameter with PayPal

tender plaza
#

yes. but I want to use "paypal", "google pay", "apple pay".

hasty geode
#

Why are you passing paymentMethodTypes?

tender plaza
#

Not pass.

#

I've just only ExpressCheckoutElement in Element.

#

like this

hasty geode
#

You need to share your actual code with me, not screenshots of the guide

tender plaza
#

OK.

hasty geode
#

Any reason why you're calling createPaymentMethod?

tender plaza
#

I don't have many experience in stripe and I've followed guide.

#

Please check this guide.

#

Oh. yes. My fault. I don't need to create paymentMethod.

hasty geode
#

I don't see createPaymentMethod caled in that guide, but the error suggests you're using it

tender plaza
#

haha. sorry for the inconvenience.

#

Thank you.