目前在线商城支持多货币支付,但是运营需求是希望paypal统一采用基础货币进行支付,即使客户选择的是非基础货币在支付时也是使用基础货币。查看paypal模块代码,发现发送给paypal的代码是采用的当前货币,如果要使用基础货币需要修改代码或是修改paypal商户的配置吗?
$currency = Yii::$service->page->currency->getCurrentCurrency();
$grand_total = Yii::$service->helper->format->number_format($orderInfo['grand_total']);
$subtotal = Yii::$service->helper->format->number_format($orderInfo['subtotal']);
$shipping_total = Yii::$service->helper->format->number_format($orderInfo['shipping_total']);
$discount_amount= Yii::$service->helper->format->number_format($orderInfo['subtotal_with_discount']);