. /** * Contains class for PayPal payment gateway. * * @package pg_paypal * @copyright 2019 Shamim Rezaie * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace pg_paypal; defined('MOODLE_INTERNAL') || die(); /** * The gateway class for PayPal payment gateway. * * @copyright 2019 Shamim Rezaie * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class gateway extends \core_payment\gateway { public static function get_supported_currencies(): array { // See https://developer.paypal.com/docs/api/reference/currency-codes/, // 3-character ISO-4217: https://en.wikipedia.org/wiki/ISO_4217#Active_codes. return [ 'AUD', 'BRL', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'ILS', 'INR', 'JPY', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'USD' ]; } }