#adam berger

1 messages ยท Page 1 of 1 (latest)

sly carbonBOT
round saddle
#

Here you can see error from console

hallow crest
#

Hello ๐Ÿ‘‹
Is this page live? If so, can you share the URL?

round saddle
#

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

hallow crest
#

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?

round saddle
#

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

normal plover
#

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?

round saddle
#

yes

#

100% reproduced:
India account => purple
Uk account => green

normal plover
#

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?

round saddle
#

immediately

normal plover
#

What is the ID of the India-based Stripe account that you're using for testing? And what browser are you using?

round saddle
#

I am trying to get the id and I am using google chrome

#

acct_1FUV1gLdV0mlbgcF

normal plover
#

Thank you!

#

When your code checks whether it should mount the PRB, what is it seeing as the result of canMakePayment()?

round saddle
#

Please give me a minute

#

Now the button doesn't render at all.

normal plover
#

That sounds more expected than the purple button.

round saddle
#

ok, now on another account I have a purple button ๐Ÿ˜„

normal plover
#

Any chance you can share that test site?

round saddle
#

unfortunately not

normal plover
#

Understood, when you run canMakePayment() on this other site where you're seeing the purple button, what is being returned?

sly carbonBOT
round saddle
#

I can only check it on the local environment and on the local it returns null

normal plover
#

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.

round saddle
#

I managed to get something like this

normal plover
#

Okay, and when you mount the PRB after getting that response, you see the green Link button being displayed?

round saddle
#

no

normal plover
#

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.

round saddle
#

Can I somehow send a gif of what is going on, but not publicly?

normal plover
#

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.

round saddle
#

I trimmed the sensitive data

normal plover
#

Which account was that test run against?

round saddle
#

acct_1E0Ul1FPN2FShTa5

#

But now it returns a green button

normal plover
#

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.

round saddle
#

ok, but why was it purple before? ๐Ÿ˜„

normal plover
#

Unsure, and can't see logs so I'm not sure how to dig further.

#

Are you seeing this same behavior in live mode, or only in test mode?

round saddle
#

I do not have access to the live environment

#

Ok, let's stop there, if the problem arises in the live environment I will return to this conversation