条纹支付屏幕显示“$”符号而不是显示“£”进行交易

Stripe payment screen shows '$' sign instead of showing '£' for transaction

我正在使用条纹支付网关进行支付的网站上工作。目前它处于测试模式,我点击条带 API 调用的付款按钮 screen/modal。在该模式中,显示的金额是货币 'usd' 我需要它在 'gbp'.

我的代码是:

<script src="https://checkout.stripe.com/checkout.js" 
        class="stripe-button" 
        data-key="pk_test_StWym8ABLxbLhtwU5LIjJxtj" 
        data-image="files/images/GO_TUTOR_ICON_NEW.png" 
        data-name="Gotutor Payment" 
        data-description="Tutor Transaction"
        data-amount="<?php echo $_GET['planTotal']; ?>" />
</script>

它显示的交易金额以美元为单位。我希望它以“£”

显示

怎么做。是否有任何额外的参数要添加到脚本中?

您只需 data-currency="gbp"configuration options 的列表。