【问题标题】:First click on Apple Pay Button doesn't work using Fondy API首次点击 Apple Pay 按钮无法使用 Fondy API
【发布时间】:2022-06-23 03:04:37
【问题描述】:

我正在使用一个 fondy api 在我的网站上创建一个支付页面。我做到了,但最终我发现了一个问题:只有在 IOS 上第一次点击按钮 Pay 根本不起作用,客户必须点击页面(任何地方),然后第二次点击才能正常工作。每次点击后都会显示一个日志:{isTrusted: true} (event.isTrusted)。我无法按程序单击此按钮(或仅在屏幕上),因为我猜是不允许的(再次为 event.isTrusted)。要实现我的付款页面,我只需将加载添加到我的页面,而没有任何样式和我的自己的逻辑是这样的。

const loadFondyStyle = () => {
    const sheet = document.createElement('link')
    sheet.rel = 'stylesheet'
    sheet.href = 'https://pay.fondy.eu/latest/checkout-vue/checkout.css'
    sheet.type = 'text/css'
    document.head.appendChild(sheet)
}

const loadPaymentPageStyle = () => {
    const sheet = document.createElement('link')
    sheet.rel = 'stylesheet'
    sheet.href = 'payment.css'
    sheet.type = 'text/css'
    document.head.appendChild(sheet)
}

我确实试图找到解决方案,但每次尝试都没有成功。请帮帮我)

【问题讨论】:

    标签: javascript reactjs onclick embedded payment


    【解决方案1】:

    是的,我也有同样的问题,请帮忙,你)

    【讨论】:

      猜你喜欢
      • 2021-03-13
      • 2016-08-02
      • 2021-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-28
      • 2023-01-18
      相关资源
      最近更新 更多