嵌入式条纹支付模式

通过 https://dashboard.stripe.com/register 注册生产/沙盒帐户

将以下代码插入你想要结帐按钮的网页。

<form action="/charge" method="POST">
  <script
    src="https://checkout.stripe.com/checkout.js" class="stripe-button"
    data-key="pk_test_6pRNASCoBOKtIshFeQd4XMUh"
    data-amount="2000"
    data-name="Stripe.com"
    data-description="2 widgets"
    data-image="/img/documentation/checkout/marketplace.png"
    data-locale="auto">
  </script>
</form>

结果: StackOverflow 文档