我正在向网关发送金额 2EUR
,现在它替换为 0,02
。这导致错误的数量正在理想中接收并且测试状态没有得到更新。
$amount = 2;
$newAmount = 2.2;
这可能是什么原因造成的?
最佳答案
您需要将金额乘以 100
如其文档中所述。
All amounts (amount, itemPrice) should be given in whole eurocents. Therefore, for a product costing 1 euro you should enter “100“ as the price. Decimals are not accepted.
关于php - 金额的理想支付网关问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9111603/