public function exportPaymentTo(Mage_Sales_Model_Quote_Payment $payment) { $resource = $this->getPayment(); if (!$resource->getMethod()) { return $this; } $countryId = $this->getAddress()->getCountryId(); $payment->setMethod($resource->getMethod()); $method = $payment->getMethodInstance(); if (!$method->isAvailable($payment->getQuote()) || !$method->canUseForCountry($countryId)) { $payment->unsMethod(); } return $this; }