【发布时间】:2022-02-02 03:50:55
【问题描述】:
它工作了几个月,但一天前,我被告知苹果/谷歌支付不起作用。我有 HTTPS,并且我将我的卡连接到了 safari。
我想我阅读了所有关于这个问题的文章。
也许有人遇到过类似的问题并且知道如何解决?
useEffect(() => {
if (stripe) {
const pr = stripe.paymentRequest({
country: "US",
currency,
total: {
label,
amount,
},
requestPayerName: true,
requestPayerEmail: true,
});
pr.canMakePayment().then((result) => { <=== it returns null
if (result) {
setPaymentRequest(pr);
}
});
...
【问题讨论】:
-
您在 stripe.com/docs/stripe-js/elements/payment-request-button 的 Stripe 支付请求按钮文档上看到 Apple Pay 按钮了吗?在 Safari 中尝试,而不是在隐私浏览模式下
标签: reactjs next.js stripe-payments