/** * Adopt specified address object to be compatible with Paypal * Puerto Rico should be as state of USA and not as a country * * @param Varien_Object $address */ protected function _applyCountryWorkarounds(Varien_Object $address) { if ($address->getCountry() == 'PR') { $address->setCountry('US'); $address->setRegionCode('PR'); } }