Open alepore opened 9 years ago
@peterfealey @paulgroves @ouechtasvu @Hates @IrvinFan please take a look
ping @JDutil @peterfealey @paulgroves @ouechtasvu @Hates @IrvinFan
This should also be merged into master
in the end i didn't use this code but i think it's still relevant. i'm just asking for some feedback/sanity checking as it's pretty complex/critical stuff :)
I don't use or care about paypal at all. The specs fail terribly on this extension for me as well so I'm not going to be touching anything here until someone fixes them. The changes in the works over at https://github.com/spree/spree/pull/6227 may be relevant to fixing this issue though.
This PR enable paypal payments for stores with VAT-included prices (very common in the EU) and should finally solve #129 and #17.
The first fix was already included in
2-2-stable
, this just adds a regression spec.The second one it's a kind of workaround because paypal does not accept negative taxes amounts. But this is very important because on Spree we have negative taxes when a country without VAT buys from a VAT-included store, like in this example:
This is also including all the commits from https://github.com/spree-contrib/better_spree_paypal_express/pull/138 to get green specs.