使用Stripes简单的'Checkout',有没有办法显示address_line2的字段?当data-billingaddress =“true”时,弹出窗体仅显示客户地址的一个字段 .
<form action="charge.php" method="post">
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="test-key-goes-here"
data-name="My Site Name"
data-description="my product description"
data-amount="5000"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-billingaddress="true"
data-shippingaddress="false"
data-currency="gbp">
</script>
</form>
1 回答
在Checkout中无法接受
address_line2
.如果你'd like to collect this field, I'建议使用Elements,它允许param作为
stripe.createToken
的一部分传入https://stripe.com/docs/stripe.js#stripe-create-token