将邮政编码和账单地址添加到条带付款表格
Add zipcode and billing address to stripe payment form
我正在尝试在我的网站上设置条纹支付
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 (.00)"
data-amount="1500">
</script>
</form>
条纹的Checkout form has a number of configuration options. To collect ZIP/postal codes, simply add data-zip-code="true"
to the list of attributes. Here's a basic example。
请注意,ZIP/postal 代码字段只会在需要时出现,因为并非所有国家/地区都使用它。 Checkout 使用卡号的前 6 位数字 ("BIN") 来确定卡的国家并显示或隐藏邮政编码字段。在上面的示例中,开始键入 424242
作为卡号,然后会出现该字段。
我正在尝试在我的网站上设置条纹支付 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 (.00)"
data-amount="1500">
</script>
</form>
条纹的Checkout form has a number of configuration options. To collect ZIP/postal codes, simply add data-zip-code="true"
to the list of attributes. Here's a basic example。
请注意,ZIP/postal 代码字段只会在需要时出现,因为并非所有国家/地区都使用它。 Checkout 使用卡号的前 6 位数字 ("BIN") 来确定卡的国家并显示或隐藏邮政编码字段。在上面的示例中,开始键入 424242
作为卡号,然后会出现该字段。