最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - The Apple Pay button is not showing in the UI using Stripe verification - Stack Overflow

programmeradmin2浏览0评论

The Apple button is not appearing in the UI, even though Apple verification is done on the server. I have also added the URL for Stripe verification. However, the Apple button is still not showing in the Safari browser, even after adding a card to Apple Pay.


// ApplePay.js
import React, { useState, useEffect } from "react";
import {
  PaymentRequestButtonElement,
  useElements,
  useStripe,
} from "@stripe/react-stripe-js";
import { useNavigate } from "react-router-dom";

function ApplePay() {
  const stripe = useStripe();
  const elements = useElements();
  const [paymentRequest, setPaymentRequest] = useState(null);
  console.log("
发布评论

评论列表(0)

  1. 暂无评论