Beispiel #1
0
 /**
  * Get allowed currencies
  * https://developer.paypal.com/docs/classic/api/currency_codes/
  *
  * @param \XLite\Model\Payment\Method $method Payment method
  *
  * @return array
  */
 protected function getAllowedCurrencies(\XLite\Model\Payment\Method $method)
 {
     return array_merge(parent::getAllowedCurrencies($method), array('AUD', 'BRL', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MYR', 'MXN', 'NOK', 'NZD', 'PHP', 'PLN', 'GBP', 'RUB', 'SGD', 'SEK', 'CHF', 'TWD', 'THB', 'TRY', 'USD'));
 }
Beispiel #2
0
 /**
  * Get allowed currencies
  *
  * @param \XLite\Model\Payment\Method $method Payment method
  *
  * @return array
  */
 protected function getAllowedCurrencies(\XLite\Model\Payment\Method $method)
 {
     return array_merge(parent::getAllowedCurrencies($method), array($method->getSetting('currency')));
 }