jawadakr Posted February 3, 2020 Share Posted February 3, 2020 Hi Everyone We are using "OSCOM CE Phoenix" and currently calculating taxes in the paypal side ( paypal express checkout method ). Paypal calculates the tax properly and charge it according to customers address but somehow paypal is not returning the taxed amount or perhaps I would say oscommerce is not reflecting it in the system. We are only getting the product prices in the order completion area. Any workaround for this ? Thanks Jawad Link to comment Share on other sites More sharing options...
jawadakr Posted February 7, 2020 Author Share Posted February 7, 2020 I think I figured it out myself. On this file path ext -> modules -> payment -> paypal -> express.php It seems that a condition is coded incorrect or may be I am wrong and the dev put it with some reason but changing the value seems to fix my problem. its from line 945 if ( DISPLAY_PRICE_WITH_TAX == 'false' ) { $item_params['PAYMENTREQUEST_0_TAXAMT'] = $paypal_express->_app->formatCurrencyRaw($order->info['tax']); $paypal_item_total += $item_params['PAYMENTREQUEST_0_TAXAMT']; } change it to this code below. if ( DISPLAY_PRICE_WITH_TAX == 'true' ) { $item_params['PAYMENTREQUEST_0_TAXAMT'] = $paypal_express->_app->formatCurrencyRaw($order->info['tax']); $paypal_item_total += $item_params['PAYMENTREQUEST_0_TAXAMT']; } That start sending tax information to paypal express and also start showing on order confirmation page as well. Hopefully that will save some people few hours of code reading. Regards Jawad Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.