#erikflow_api
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/1328339633570054220
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π happy to help
would you mind elaborating more?
what integration doc are you following?
Hi, I use this API https://docs.stripe.com/js/custom_checkout/create_element?type=payment,
Also looking at
https://docs.stripe.com/elements/express-checkout-element
these are 2 separate implementation
thanks for the help π
Yes I know, but tried to look at the second one to get some insights in why it doesnt work
Im using custom checkout
You should be able to access it here: https://25a0-31-208-45-6.ngrok-free.app/api/cart/add_item/?sku=FL-100-A-UK&redirect_to=cart
you will come to a cart page and then press go to checkout
at a top of the checkout page I mount the express element
but it is empty
ah wow!
I see this
interesting π
btw you can use the Address Element
instead of collecting the billing details yourself
is there someway to get a log or error messages on why a payment option doesnt show?
to debug it somehow?
do you have any error logged in the dev-tools console?
It doesnt show up either on my phone, or my computer where I have google pay.. strange
do you mean only the ECE doesn't show? or do you mean also the PaymentElement at the bottom of the page?
The ECE element
that's another story then π
In your screenshot google pay is shown
Ive never been able to make that happen π
That is my problem
So something is different between your browser or setup somehow and mine
are you opening the url you sent me? or the localhost version?
ok
the other reason why Google Pay is not showing, is that we're trying to omit some PaymentMethods for an experiment and starting today GooglePay and ApplePay are also included in that experiment
so that might be the reason
in your devtools do you see this message expressCheckoutElement ready ?
yes
could you open the object next to it?
it is undefined for me
expressCheckoutElement.on('ready', ({ availablePaymentMethods }) => {
console.log("expressCheckoutElement ready", availablePaymentMethods);
});
availablePaymentMethods is undefined for me
when i run it
ah but I had a syntax error there, now it shows.
oh that might also explain it π
what do you mean?
I fixed the syntax error, and above is the object I get back from the ready event. It seems to be the element itself
but not sure what I can read from it π
console.log("expressCheckoutElement ready", availablePaymentMethods);
});```
that was correct and generating the right reponse for me
is the PaymentElement loading for you or not?
shouldnt it return an object with false on all options instead? if nothing is enabled
undefined seems to be caused by some error, or what do you think?
can it be because Im in sweden and you are in somewhere else maybe?
are there country restrictions or something like that?
no I don't think it's related
I'm not sure why it's not showing up for you
do you see the PaymentElement at least?
yes the payment element works as expected
but the express element iFrame is rendered like this, empty
do you need to use both in your scenario?
Yes, because i want to use it on the cart page also
Ive checked with a few colleagues, both have google pay.
It only worked for the one colleague who is in UK.
I will test thorugh a UK VPN
brb
can you look for this request https://api.stripe.com/v1/elements/sessions and see what's the response?
Hi, it worked if I used an VPN to the UK
hmmm I'm wondering which network request is being blocked
it doesnt work for any of my swedish colleagues
that's why I'm asking you if you can look at this request
thanks will check
1 sec
I only see these two requests
the https://api.stripe.com/v1/elements/sessions request has this response
Taking over here and it's unclear to me what the current issue is. Can you help me understand?
Hi!
Im trying to use the Custom Checkout (beta) Express checkout element.
It seems to be working in the UK (if I VPN to the UK it works) but not in Sweden were I am. Ive tried with colleagues in Sweden and UK and it works for those in the UK but not for those is Sweden. It worked for tarzan (not sure were he is)
Google or Apple pay does not seem to make a difference
You can look at my test implementation here: https://25a0-31-208-45-6.ngrok-free.app/api/cart/add_item/?sku=FL-100-A-UK&redirect_to=cart
Press Go to checkout, you should get an Express checkout element at the top
if it doesnot work you only get a basically empty iframe rendered
Also, when it doesnt work, availablePaymentMethods is undefined in the ready event:
expressCheckoutElement.on('ready', ({ availablePaymentMethods }) => {
console.log("expressCheckoutElement ready", availablePaymentMethods);
});
I too see Google Pay wallet button (I'm based in UK)
ok, great
You sure you meet the requirements for Google Pay and have a card in your Pay wallet?
I tried a few different countries using my VPN, and it works both in UK, Germany and denmark, but not in sweden.
I wonder if it related to my Stripe account being swedish?
Yes, it works on other sites, and it works if I use the VPN to be out side sweden
Let me check something π§βπ³
so far i havent found a single person within sweden for which it works
Can you share with me a cs_xxx ID from one of your checkout page loads?
I suspect this is likely a bug with custom Checkout beta specific to FI and SE customers
no sorry
wrong id
1 sec
here is the correct one: cs_test_a1Kp1WSXNxFuSbv5bEJYj9GwUkSA3IYhgWX5z172aLk4maSLq3L3iGm8Bb
ok, i will test from finland, 1 sec
can confirm it doesnt work from finland either. But Denmark works, so probably that then
Yeah so there's some regulation in FI and SE where we must deprioritise credit card methods if there's non-card payment methods available
In normal Checkout what happens is we move the wallets (Google Pay) into the carousel rather than them being big buttons. I guess in this scenario we just don't render the ECE buttons
I'd like to verify with the team that this is expected though as it seems weird that we just don't show them at all. Can you do me a favour and write in to me/my team and share one of those Checkout IDs and thew reproduction URL and I'll take a closer look?
Hello @narrow bone, we have sent you a direct message, please check it at https://discord.com/channels/@me/1328361630249128028
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Yep, that's right. It'll come directly to me and I'll pick it up
Follow the steps in the DM
I think I opened a support ticket now π
Got it! I'll take a look shortly and talk to the Checkout team. I'll reply on the ticket (email)
thanks, great!