【发布时间】:2013-08-27 13:07:15
【问题描述】:
我正在使用 ci-merchant 库 ci-merchant 并且一切正常,除了我只是将订单总额传递给 paypal。
有没有办法指定运费和/或其他自定义属性,这样当客户被推荐到 Paypal 时,会有一个分项清单,以便他们知道他们要支付的费用。
这是我现有的代码:
$params = array(
'amount' => 50.00,
'currency' => 'USD',
'return_url' => 'mysite.com/return/' . $order_id,
'notify_url' => 'mysite.com/notify/' . $order_id,
);
$response = $this->merchant->purchase($params);
我想做的是这样的:
$params = array(
'amount' => 40.00,
'shipping' => 10.00,
'currency' => 'USD',
'return_url' => 'mysite.com/return/' . $order_id,
'notify_url' => 'mysite.com/notify/' . $order_id,
);
$response = $this->merchant->purchase($params);
【问题讨论】:
标签: php codeigniter payment-gateway ci-merchant