我的process-card.php文件有这个;
# Monetary amounts are specified in the smallest unit of the applicable currency.
# This amount is in cents. It's also hard-coded for $1.00, which isn't very useful.
"amount_money" => array (
"amount" => (int)$_POST['amount'] *100,
"currency" => "CAD"
然后出于测试目的,我将* 100更改为* 111,确定它会收取美分,但这次不是从发票中收取17.25美元,方形报告显示,收到18.87美元。
任何帮助都会很棒。
感谢您
答案 0 :(得分:0)
您将$_POST['amount']
类型转换为整数,这将删除小数点后的任何内容。
尝试删除(int)