#6hills_error
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/1425404870189649931
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- 6hills_ece-googlepay, 15 hours ago, 61 messages
browser console:
other options show up as usual:
it is enabled in the stripe dashboard (sandbox environment)
Is this a deferred or non-deferred flow? If the latter, what's the PI ID?
payment id: pi_3SFrTj4cOZ7Xf1Lb0MdqzaJa
Thanks, looking
What immediately jumps out to me is that you're doing EUR payments as a GB merchant. The limits the availability based on customer geo: https://docs.stripe.com/payments/klarna#cross-border-payments
e.g. you'd need to be in a country where EUR is the local currency for Klarna to work
I should be able to find some logs to confirm that
we have been suggested that and tried a VPN to match the country, and it did not show up. Could you please confirm further? ty
A VPN is not always reliable, unfortunately. But yes, checking
Have you actually initialised the ECE with this intent?
yes, the screenshot is the element:
these options are provided:
`const expressCheckoutElementOptions: StripeExpressCheckoutElementOptions = {
buttonType: {
applePay: "plain",
googlePay: "plain",
klarna: "pay",
},
buttonTheme: {
applePay: "black",
googlePay: "black",
klarna: "outlined",
},
layout: {
maxColumns: 3,
maxRows: 2,
overflow: "auto",
},
buttonHeight: 50,
paymentMethods: {
googlePay: "always",
applePay: "always",
klarna: "auto",
},
paymentMethodOrder: ["apple_pay", "google_pay", "klarna"],
} as const;`
Can you share the code that initialises the Elements group? This part: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?payment-ui=elements#set-up-elements
yes, here's the options for elements:
const stripeElementsOptions: StripeElementsOptions = { mode: "setup" as const, setup_future_usage: "off_session" as const, payment_method_types: ["card"], } as const;
Yeah as I suspected, you're not initialising the Elements instance with the intent
both are elements coming from react lib
Equally, is there somewhere I can view your page/site that you're having problems with?
oops sorry that was wrong place of the app, here is the actual checkout:
const stripeElementsOptions: StripeElementsOptions = { mode: "setup" as const, setup_future_usage: "off_session" as const, payment_method_types: ["card", "klarna"], } as const;
klarna is passed as a pm type, but we see the error:
Yeah that's irrelevant
âď¸
unfortunately that place is an authenticated checkout that would not be possible to share at the moment :/
Because you're passing mode here, and not the client_secret from the PI you're using the deferred mode
is klarna not supported in 'setup' mode?
Hey! Taking over for my colleague. Let me catch up.
I just confirmed internally, Klarna works only for payment mode
ok thank you, do these restrictions also apply for apple/google pay?
so that basically means it is impossible to incorporate klarna in our flow where the user is charged after certain action (deferred)?
No, you should be able to use Apple and Google Pay in setup mode
You can collect Klarna payment method and set it up for future payment, but not with the Express Checkout Element (at least not yet)
https://docs.stripe.com/payments/klarna/set-up-future-payments
ok, thank you. Won't be wasting your time anymore. have a good one !