-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Description
Summary
I'm having trouble getting the button to display. The result from canMakePayment is always null. Code:
React.useEffect(() => {
if (stripe) {
const pr = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Demo total',
amount: 1099,
},
requestPayerName: true,
requestPayerEmail: true,
});
pr.canMakePayment().then((result) => {
if (result) {
setPaymentRequest(pr);
}
});
}
}, [stripe]);Other information
I am using https, although it is on localhost. I'm not sure that has an impact at all or not. I have added payment methods as well.
Metadata
Metadata
Assignees
Labels
No labels