#w3ever
1 messages · Page 1 of 1 (latest)
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?
Ok, then you just pass the parameter to your <Elements /> provider:
<Elements options={{ paymentMethodCreation: 'manual' }}>
All the options/parameters there are interchangable with React props
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'.
Seems pretty verbose to me. You can't use that parameter with PayPal
yes. but I want to use "paypal", "google pay", "apple pay".
Why are you passing paymentMethodTypes?
You need to share your actual code with me, not screenshots of the guide
OK.
Any reason why you're calling createPaymentMethod?
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.
I don't see createPaymentMethod caled in that guide, but the error suggests you're using it