#brayden-prb-link

1 messages · Page 1 of 1 (latest)

lavish nacelleBOT
fickle bronze
#

Hello! What's your question?

versed bloom
#

My first question is, is it possible to test link pay from a localhost hosted site?

fickle bronze
#

Yes, it should be possible (as long asyou're in testmode)

versed bloom
#

It seems that the site must be using HTTPS?

#

We're using the React components provided from Stripe

#

The canMakePayment() call after creating the paymentRequest always returns null

fickle bronze
#

When you say "Link pay" can you be more specific? Are you using the express checkout element? Payment element? something else?

versed bloom
#

When we use our staging site (hosted over HTTPS), I'm able to get this to return true and expose the Link pay modals for submission of payment details but test cards are not working

#

The call in line 22 always returns null when in my localhost

fickle bronze
#

Ah, so the Payment Request Button requires https both in development and production

#

If you were to use LInk in the payment element or card element it would still work over localhost in testmode

versed bloom
#

Yeah, got it. So we have a "staging" env that is using test mode API keys

fickle bronze
#

But for the payment request button it's required

versed bloom
#

I'm able to get the Stripe hosted forms to work properly there (likely because of HTTPS)

#

However, test card numbers (like VISA 4242424242424242) are not working

#

Payment failed. Please verify your information and try again. is the error message I get

fickle bronze
#

Do you have an example payment intent ID I can look at?

versed bloom
#

I don't at the moment, but give me a bit to keep going here. Sounds like test cards should work if everything else is working correctly?

#

Was mainly looking for confirmation of this, first, before I went any further into trying to debug what might be happening

fickle bronze
#

Yeah as far as I know the test cards should work - let me also try really quickly on my end to confirm

#

okay just tried it end to end on my end with the 4242 card and it's working for me!

versed bloom
#

Yeah I just got it to work as well. Thanks for the help!

fickle bronze
#

👍 awesome!

lavish nacelleBOT
#

brayden-prb-link