嵌入式條紋支付模式

通過 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 文件