开发者

How can Set Current currency in paypal in magento?

When i select paypal in payement method then its pass base currency which is s开发者_如何转开发elected in admin panel. But i want pass current currency ,selected in front site.

I know Midify paypal Api, But were and which file want to changes, please describe briefly.

So any body know then please help me.

Thanks Vijay


You can override the paypal api and change the value that are sent to paypal and you probably will need to override other methods that are validating the sums that are paid.

$ grep getBaseGran app/code/core/Mage/Paypal -rsn
app/code/core/Mage/Paypal/Model/Express/Checkout.php:180: $this->_quote->getBaseGrandTotal(),

app/code/core/Mage/Paypal/Model/Express/Checkout.php:246: $this->_api->setAmount($this->_quote->getBaseGrandTotal())

app/code/core/Mage/Paypal/Model/Express/Checkout.php:283: if (Mage::helper('paypal')->areCartLineItemsValid($items, $totals, $this->_quote->getBaseGrandTotal())) {

app/code/core/Mage/Paypal/Model/Standard.php:147: $grandTotal = $order->getBaseGrandTotal();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜