【问题标题】:Stripe payment multiple currency条纹支付多币种
【发布时间】:2017-11-29 06:34:10
【问题描述】:

我已经使用 php 实现了条带支付。基础货币为欧元。如何添加选项以允许用户以其他货币付款

$charge = \Stripe\Charge::create(array(
"amount" => $amount, 
"currency" => "eur", 
"source" => $source,
"customer" => "cus_BpES3vz708LAn3"
"description" => $description 
));

非常感谢

【问题讨论】:

  • 也发布您的代码
  • @GyandeepSharma 我检查了此链接中的一些选项。但找不到兑换货币的方法
  • @AnandhuNadesh 请检查
  • 你需要一个 API 检查这个链接 - phpzag.com/convert-currency-using-google-api

标签: php stripe-payments currency


【解决方案1】:

Stripe 基本上可以处理您想要的any currency 中的费用,但目前它没有用于转换金额的 API。由您来计算转换后的金额,例如使用third-party API,并在creating the charge 时将正确的amountcurrency 参数传递给Stripe。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-06
    • 2017-09-14
    • 2012-03-15
    • 1970-01-01
    • 2021-08-02
    • 2020-12-30
    • 2012-02-19
    • 2021-11-19
    相关资源
    最近更新 更多