#paulc7053_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1254796341008138301
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello?
Hi there ๐ can you tell me a lot more about this? Are you setting up the Express Checkout Element to force Apple Pay to show, or are you leaving default behavior in place where it's only surfaced if we detect the device being used is already fully set up to use Apple Pay (including having a card in the wallet already)?
I was not aware of the default behaviour
how can I change it?
in order to show the button regardless
You can set paymentMethods.applePay to always:
https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-paymentMethods
Got it!
Sice I dont use elements.create I guess I should pass it in like this const expressCheckoutOptions = { layout: { overflow: "never" }, paymentMethods:{ applePay:"always", googlePay:"always", }, buttonHeight: 50, paymentMethodOrder: ["google_pay", "apple_pay", "paypal"] };
๐ stepping in here as toby needs to step away
Hello
Are you using React here?
yes
If so, you would pass the above to your Elements component and yes that looks correct
great!
One more question: I've been advised to move off of ECE to the Payment element. My only concern with that is that I cannot display custom marketing text within the form, can I?
Ah wait sorry
You pass paymentMethods as props to your Express Checkout Element
Not your Elements Provider
That's correct that you can't display custom text within Payment Element
yeah, like this I assume <ExpressCheckoutElement onClick={onClick} onReady={onReady} onConfirm={onConfirm} options={expressCheckoutOptions} />
However you shouldn't really need to migrate -- you can use Express Checkout Element together with Payment Element
If you want
Both Paypal and Subscriptions are supported with ECE
Paypal is only supported in the EU though currently.
Where is your Stripe Account located?
EU, but also selling in the US
I remember having problems with this... the button just wouldnt show up
Hmm are you using Setup Future Usage and is your account set up for Paypal recurring payments?
Yes I have been allowed to accept recurring payments with PayPal
Okay and Paypal is on in your Dashboard I assume?
Okay, this is very weird
I just looked again in the Payment Methods section
and it says that I need approval vor the recurring payments with paypal, but I have already received it
Hmmm I'm not sure about how that stuff works tbh -- we just focus on the API here. Maybe it was enabled on a different account? If you need help on that approval and getting it enabled you will need to work with our Support team via https://support.stripe.com/contact/login
It certainly is on the same account
If it would show enabled in the dashboard, should the PayPal button also show up in the ECE?
If the recurring setting is enabled then yes afaik it should