这是我的 HTML 表单,并使用 stripe 最新的 PaymentIntent API。我的问题是我没有弹出 3D 安全授权。谁能帮助我指导那些让我出错的事情?我试图遵循条纹文档(https://stripe.com/docs/ payments/ payment-intents/web#handling-next-actions),但它完全令人困惑。
\n\n<script src=\'https://js.stripe.com/v3/\' type=\'text/javascript\'></script>\n<form action="process_payment.php" method="post" id="payment-form">\n <div class="form-row">\n <label for="card-element">\n Credit or debit card\n </label>\n <div id="card-element"><!-- Your form goes here --></div>\n </div>\n <!-- Used to display form errors -->\n <div id="card-errors" role="alert"></div>\n <button class="atbdp_pay_btn" type="submit">Pay</button>\n</form>\nRun Code Online (Sandbox Code Playgroud)\n\nJavaScript
\n\ndocument.addEventListener("DOMContentLoaded", function(event) {\n var stripe = Stripe(\'pk_test_xxxxxxxxxx\'); // test publishable API key\n var elements = stripe.elements();\n\n var card = elements.create(\'card\');\n // Add an instance of the card UI …Run Code Online (Sandbox Code Playgroud)