![](/img/trans.png)
[英]Stripe API and PHP: Relationship of PAYOUTS to Payment Intent / Charges
[英]how to calculate gbp charges in stripe payment api
請讓我知道如何計算stripe
支付api中的gbp費用。
當我支付77 Gbp時,其轉換如下:
金額:0.77英鎊英鎊
學費:£0.22
您能幫我理解這個計算嗎?
$payment = \Stripe\Charge::create(array(
'amount' => 77,
'currency' => 'gbp',
'customer' => 'cus_9pI6dChsVygOLm',
'capture' => true,
'description' => 'Testing response',
));
當您將金額作為費用傳遞給Stripe時,以美分為單位。 因此,要實際收取77GBP,您需要將該金額乘以100。請參閱Stripe文檔及其以美分表示的方式: https : //stripe.com/docs/quickstart#charging-your-customer-immediately
然后,費用是Stripe根據金額向您收取的交易費用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.