gpt4 book ai didi

stripe-payments - 将邮政编码和帐单地址添加到 strip 付款表单

转载 作者:行者123 更新时间:2023-12-05 00:17:32 28 4
gpt4 key购买 nike

我正在尝试在我的网站上设置 strip 支付
http://www.phpgang.com/how-to-integrate-stripe-payment-gateway-in-php-1_1027.html

我用演示和现场测试了它,它工作得很好,
但我正在尝试在表单中添加邮政编码
我想将用户帐单地址和邮政编码发送到 Stripe 以进行验证

<form action="charge.php" method="POST">
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_7JKeM9chawSzwFaDDJAxpa3K"
data-image="http://www.phpgang.com/wp-content/themes/PHPGang_v2/img/logo.png"
data-name="PHPGang.com"
data-description="Download Script ($15.00)"
data-amount="1500">
</script>

</form>

最佳答案

条纹的Checkout表格有 configuration options .要收集邮政编码,只需添加 data-zip-code="true"到属性列表。这是一个 basic example .

请注意,邮政编码字段仅在需要时才会出现,因为并非所有国家/地区都使用它。 Checkout 使用卡号的前 6 位数字("BIN")来确定卡的国家/地区并显示或隐藏邮政编码字段。在上面的例子中,开始输入 424242卡号,该字段将出现。

关于stripe-payments - 将邮政编码和帐单地址添加到 strip 付款表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40117013/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com