我正在为我的客户实现MercadoPago,使用API和PHP。
当我尝试通过结帐/首选项设置付款流程(使用重定向URL)时,我发送了一个单价为$40,34的商品:
[items] => Array
(
[0] => Array
(
[title] => My item
[quantity] => 1
[unit_price] => 40.34
[currency_id] => USD
)
)但是当重定向到MercadoPago时,我会显示$125,601而不是$40,34。所以我不能告诉MercadoPago使用好的数量!
如何修复我对Mercado的API调用,以便在支付过程中获得正确的单价?
发布于 2019-08-21 16:17:00
$preference_data = array(
"items" => array(
array(
"id" => "Code",
"title" => "Title of what you are paying for",
"currency_id" => "ARS",
"description" => "Description",
"category_id" => "Category",
"quantity" => 1,
"unit_price" => 40.34
)
)
)我想这会对你有帮助的!
https://stackoverflow.com/questions/32458939
复制相似问题