#brayden-prb-link
1 messages · Page 1 of 1 (latest)
Hello! What's your question?
My first question is, is it possible to test link pay from a localhost hosted site?
Yes, it should be possible (as long asyou're in testmode)
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
When you say "Link pay" can you be more specific? Are you using the express checkout element? Payment element? something else?
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
It appears that HTTPS is required from this section: https://stripe.com/docs/stripe-js/elements/payment-request-button?client=react#react-testing
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
Yeah, got it. So we have a "staging" env that is using test mode API keys
But for the payment request button it's required
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
Do you have an example payment intent ID I can look at?
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
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!
Yeah I just got it to work as well. Thanks for the help!
👍 awesome!
brayden-prb-link