#cosmitron16_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1404830189841682482
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there
I was going to point out the limitation on setupFutureUsage with PayPal and ECE, where using that option in Elements will push paypal to appear in Payment Element only, but you mentioned you already tried removing this.
Can you share your Elements options that are being used here? And is there a test page we're able to access directly to observe the behaviour?
{
loader: 'always',
mode: 'subscription',
// setupFutureUsage: 'off_session',
paymentMethodCreation: 'manual',
amount: plan?.total_cents || 0,
currency: plan?.currency || Currency.EUR,
paymentMethodTypes: [
StripePaymentMethod.CARD,
StripePaymentMethod.PAYPAL,
StripePaymentMethod.APPLE_PAY,
],
appearance: getStripeElementsTheme(),
locale: localeForStripe,
fonts: [
{ ...}
],
};
hi there, taking over for my colleague, give me a couple minutes to catch up
Unfortunately I don't have a test page to let you check
that's interesting that it's appearing in the Payment Element but not ECE, can you share what browser you're using? have you tried different layout settings, just in case?
I've tried both Safari and Chrome, I can see ApplePay in the ECE when on Safari
can you see the Paypal button if you go to the ECE test page? https://docs.stripe.com/elements/express-checkout-element
If I switch to Germany or France yes, not in US
Do you mean different layout in StripeExpressCheckoutElementOptions?
I've tried removing it
Paypal isn't supported as a payment method in the US https://docs.stripe.com/payments/paypal (look at the Business Locations tab)
if you're a US based business, Paypal shouldn't be showing up at all unless you're using Custom Payment Methods to roll it yourself
Nono I never had issues with PayPal as displayed in PaymentElement, I was referring to the country selector in the ECE test page
right, but what I'm saying is, if you're a US based business, you shouldn't be getting Paypal in Payment Element, so I'm a little confused as to how that's happening. if you click on Paypal in the Payment Element, is it working?
Sisi, I'm not a US based business
To give you more context, PayPal as PaymentElement has been working for months/years, we just wanted to test the PayPal ECE
unfortunately it's hard to debug these sort of issues without a publically exposed page to look at, if possible can you rig up something quick in jsfiddle or on a test page so I can investigate further?
I'm not able to provide it quickly unfortunately. If I manage to create it, I'll get back to you by opening a new thread. For the moment, I'd say we can close the thread. I'll consider the setupFutureUsage explanation enough, considering that we don't want to remove it ๐
Thanks!