php - 金额的理想支付网关问题

标签 php mysql

我正在向网关发送金额 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/

相关文章:

php - imagepng : how to save the output in a variable and then display it using img tag

PHP 异常 - 我的想法正确吗?

php - 数据库中 HTML 的正确格式

mysql - 从字符串中选择修剪空格 - 这是一个错误还是在规范中?

java - 使用 Google Web Toolkit 创建与 MySQL 交互的应用程序

mysql - 使用重力形式 gform_after_submission 将提交的数据推送到 mySQL

php - 同一字段上具有两个条件的 Sql 内连接

php - 用于检测用户是否是特定用户组成员的自定义代码的小问题

php - 错误 #1241 - 操作数应包含 1 列

mysql - 如何确认我的 AWS MySQL 连接是安全的?