#adam berger
1 messages ยท Page 1 of 1 (latest)
Here you can see error from console
Hello ๐
Is this page live? If so, can you share the URL?
We noticed this on the test environment, sometimes it displays green and sometimes purple and this purple does not work
I'd like to make sure that on a live environment it works or it doesn't show up.
Unfortunately I have no way of giving a url because the test environments are not available externally
My understanding was that we replaced the old purple button with link so it shouldn't be showing up ๐ค
Have you been able to reproduce this consistently?
No, it happens randomly
so basically this is some old button and shouldn't be on live anymore?
ok, I found a correlation, for payments with an Indian account old one is displayed and for other countries the green one is displayed
Hi ๐ I'm helping take a look at this. To clarify, when you're using a Stripe account that is based in India, you're seeing the purple button when rendering the Payment Request Button?
Can you share the ID of the India based account you're using for testing?
I'm also trying to reproduce this behavior, but when using an India-based test account I'm not seeing the purple button either. When you see that button, is it rendered immediately or does it take time to appear?
immediately
What is the ID of the India-based Stripe account that you're using for testing? And what browser are you using?
Thank you!
When your code checks whether it should mount the PRB, what is it seeing as the result of canMakePayment()?
That sounds more expected than the purple button.
ok, now on another account I have a purple button ๐
Any chance you can share that test site?
unfortunately not
Understood, when you run canMakePayment() on this other site where you're seeing the purple button, what is being returned?
I can only check it on the local environment and on the local it returns null
Okay, that sounds like it makes sense, when that function returns null that means no wallets are ready for use and there is nothing for the button to accept so it shouldn't be mounted.
Okay, and when you mount the PRB after getting that response, you see the green Link button being displayed?
no
Can you make a test site available? I'm having a hard time getting a sense of what could be going on without being able to see the behavior.
Can I somehow send a gif of what is going on, but not publicly?
That won't let me inspect the related code, the console logs, network history, and won't allow me to rapidly test multiple scenarios with various wallet setups across multiple browsers.
If I'm not able to test myself, I'll need full steps to reproduce the behavior that is being encountered if you're able to consistently reproduce it in order to build a replication and see what is happening.
I trimmed the sensitive data
Which account was that test run against?
That's expected based on the results you showed for canMakePayment(). That function indicated that in this case Link was the only wallet available for use, so the Payment Request Button renders as the green Link button.
ok, but why was it purple before? ๐