小编Ahm*_*mad的帖子

如何将自定义字段添加到条带检出的弹出窗体

如何将自定义字段添加到Stripe Checkout表单,如名字,姓氏,甚至可能是带有自定义按钮的复选框?到目前为止,我已经想出了这个;

<script src="https://checkout.stripe.com/checkout.js"></script>

<form action="/charge" method="POST">
  <script
    src="https://checkout.stripe.com/checkout.js" class="stripe-button"
    data-key="pk_test_i2txBI2jUjSQIMoqFz3Fo326"
    data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
    data-name="Matt's Widgets and Gizmos"
    data-description="2 widgets ($20.00)"
    data-amount="2000"
    data-billingAddress="true"
    data-shippingAddress="true">
  </script>
</form>
Run Code Online (Sandbox Code Playgroud)

我发现Stripe Checkout只能包含以下自定义值;

stripeBillingName: 
stripeBillingAddressLine1: 
stripeBillingAddressApt:
stripeBillingAddressZip: 
stripeBillingAddressCity: 
stripeBillingAddressState: 
stripeBillingAddressCountry: 
stripeBillingAddressCountryCode: 
Run Code Online (Sandbox Code Playgroud)

有没有办法解决?请让我知道谢谢

html javascript stripe-payments

17
推荐指数
1
解决办法
2万
查看次数

标签 统计

html ×1

javascript ×1

stripe-payments ×1