Skip to content

Instantly share code, notes, and snippets.

@halgatewood
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halgatewood/654f75a64703665b9cd6 to your computer and use it in GitHub Desktop.
Save halgatewood/654f75a64703665b9cd6 to your computer and use it in GitHub Desktop.
Add this function to your functions.php file in your theme.All support currencies for the Stripe Checkout Gateway for Easy Digital Downloads. http://halgatewood.com/downloads/stripe-checkout-gateway/ Please note that some currencies are not supported by American Express: https://support.stripe.com/questions/which-currencies-does-stripe-support
function hg_stripe_checkout_all_currencies( $currencies )
{
$currencies['INR'] = __('Indian Rupee', 'hg_edd');
$currencies['AED'] = __('United Arab Emirates Dirham', 'hg_edd');
$currencies['AFN'] = __('Afghan Afghani', 'hg_edd');
$currencies['ALL'] = __('Albanian Lek', 'hg_edd');
$currencies['AMD'] = __('Armenian Dram', 'hg_edd');
$currencies['ANG'] = __('Netherlands Antillean Gulden', 'hg_edd');
$currencies['AOA'] = __('Angolan Kwanza', 'hg_edd');
$currencies['ARS'] = __('Argentine Peso', 'hg_edd');
$currencies['AUD'] = __('Australian Dollar', 'hg_edd');
$currencies['AWG'] = __('Aruban Florin', 'hg_edd');
$currencies['AZN'] = __('Azerbaijani Manat', 'hg_edd');
$currencies['BAM'] = __('Bosnia & Herzegovina Convertible Mark', 'hg_edd');
$currencies['BBD'] = __('Barbadian Dollar', 'hg_edd');
$currencies['BDT'] = __('Bangladeshi Taka', 'hg_edd');
$currencies['BGN'] = __('Bulgarian Lev', 'hg_edd');
$currencies['BIF'] = __('Burundian Franc', 'hg_edd');
$currencies['BMD'] = __('Bermudian Dollar', 'hg_edd');
$currencies['BND'] = __('Brunei Dollar', 'hg_edd');
$currencies['BOB'] = __('Bolivian Boliviano', 'hg_edd');
$currencies['BRL'] = __('Brazilian Real', 'hg_edd');
$currencies['BSD'] = __('Bahamian Dollar', 'hg_edd');
$currencies['BWP'] = __('Botswana Pula', 'hg_edd');
$currencies['BZD'] = __('Belize Dollar', 'hg_edd');
$currencies['CAD'] = __('Canadian Dollar', 'hg_edd');
$currencies['CDF'] = __('Congolese Franc', 'hg_edd');
$currencies['CHF'] = __('Swiss Franc', 'hg_edd');
$currencies['CLP'] = __('Chilean Peso', 'hg_edd');
$currencies['CNY'] = __('Chinese Renminbi Yuan', 'hg_edd');
$currencies['COP'] = __('Colombian Peso', 'hg_edd');
$currencies['CRC'] = __('Costa Rican Colón', 'hg_edd');
$currencies['CVE'] = __('Cape Verdean Escudo', 'hg_edd');
$currencies['CZK'] = __('Czech Koruna', 'hg_edd');
$currencies['DJF'] = __('Djiboutian Franc', 'hg_edd');
$currencies['DKK'] = __('Danish Krone', 'hg_edd');
$currencies['DOP'] = __('Dominican Peso', 'hg_edd');
$currencies['DZD'] = __('Algerian Dinar', 'hg_edd');
$currencies['EEK'] = __('Estonian Kroon', 'hg_edd');
$currencies['EGP'] = __('Egyptian Pound', 'hg_edd');
$currencies['ETB'] = __('Ethiopian Birr', 'hg_edd');
$currencies['EUR'] = __('Euro', 'hg_edd');
$currencies['FJD'] = __('Fijian Dollar', 'hg_edd');
$currencies['FKP'] = __('Falkland Islands Pound', 'hg_edd');
$currencies['GBP'] = __('British Pound', 'hg_edd');
$currencies['GEL'] = __('Georgian Lari', 'hg_edd');
$currencies['GIP'] = __('Gibraltar Pound', 'hg_edd');
$currencies['GMD'] = __('Gambian Dalasi', 'hg_edd');
$currencies['GNF'] = __('Guinean Franc', 'hg_edd');
$currencies['GTQ'] = __('Guatemalan Quetzal', 'hg_edd');
$currencies['GYD'] = __('Guyanese Dollar', 'hg_edd');
$currencies['HKD'] = __('Hong Kong Dollar', 'hg_edd');
$currencies['HNL'] = __('Honduran Lempira', 'hg_edd');
$currencies['HRK'] = __('Croatian Kuna', 'hg_edd');
$currencies['HTG'] = __('Haitian Gourde', 'hg_edd');
$currencies['HUF'] = __('Hungarian Forint', 'hg_edd');
$currencies['IDR'] = __('Indonesian Rupiah', 'hg_edd');
$currencies['ILS'] = __('Israeli New Sheqel', 'hg_edd');
$currencies['INR'] = __('Indian Rupee', 'hg_edd');
$currencies['ISK'] = __('Icelandic Króna', 'hg_edd');
$currencies['JMD'] = __('Jamaican Dollar', 'hg_edd');
$currencies['JPY'] = __('Japanese Yen', 'hg_edd');
$currencies['KES'] = __('Kenyan Shilling', 'hg_edd');
$currencies['KGS'] = __('Kyrgyzstani Som', 'hg_edd');
$currencies['KHR'] = __('Cambodian Riel', 'hg_edd');
$currencies['KMF'] = __('Comorian Franc', 'hg_edd');
$currencies['KRW'] = __('South Korean Won', 'hg_edd');
$currencies['KYD'] = __('Cayman Islands Dollar', 'hg_edd');
$currencies['KZT'] = __('Kazakhstani Tenge', 'hg_edd');
$currencies['LAK'] = __('Lao Kipa', 'hg_edd');
$currencies['LBP'] = __('Lebanese Pound', 'hg_edd');
$currencies['LKR'] = __('Sri Lankan Rupee', 'hg_edd');
$currencies['LRD'] = __('Liberian Dollar', 'hg_edd');
$currencies['LSL'] = __('Lesotho Loti', 'hg_edd');
$currencies['LTL'] = __('Lithuanian Litas', 'hg_edd');
$currencies['LVL'] = __('Latvian Lats', 'hg_edd');
$currencies['MAD'] = __('Moroccan Dirham', 'hg_edd');
$currencies['MDL'] = __('Moldovan Leu', 'hg_edd');
$currencies['MGA'] = __('Malagasy Ariary', 'hg_edd');
$currencies['MKD'] = __('Macedonian Denar', 'hg_edd');
$currencies['MNT'] = __('Mongolian Tögrög', 'hg_edd');
$currencies['MOP'] = __('Macanese Pataca', 'hg_edd');
$currencies['MRO'] = __('Mauritanian Ouguiya', 'hg_edd');
$currencies['MUR'] = __('Mauritian Rupee', 'hg_edd');
$currencies['MVR'] = __('Maldivian Rufiyaa', 'hg_edd');
$currencies['MWK'] = __('Malawian Kwacha', 'hg_edd');
$currencies['MXN'] = __('Mexican Peso', 'hg_edd');
$currencies['MYR'] = __('Malaysian Ringgit', 'hg_edd');
$currencies['MZN'] = __('Mozambican Metical', 'hg_edd');
$currencies['NAD'] = __('Namibian Dollar', 'hg_edd');
$currencies['NGN'] = __('Nigerian Naira', 'hg_edd');
$currencies['NIO'] = __('Nicaraguan Córdoba', 'hg_edd');
$currencies['NOK'] = __('Norwegian Krone', 'hg_edd');
$currencies['NPR'] = __('Nepalese Rupee', 'hg_edd');
$currencies['NZD'] = __('New Zealand Dollar', 'hg_edd');
$currencies['PAB'] = __('Panamanian Balboa', 'hg_edd');
$currencies['PEN'] = __('Peruvian Nuevo Sol', 'hg_edd');
$currencies['PGK'] = __('Papua New Guinean Kina', 'hg_edd');
$currencies['PHP'] = __('Philippine Peso', 'hg_edd');
$currencies['PKR'] = __('Pakistani Rupee', 'hg_edd');
$currencies['PLN'] = __('Polish Złoty', 'hg_edd');
$currencies['PYG'] = __('Paraguayan Guaraní', 'hg_edd');
$currencies['QAR'] = __('Qatari Riyal', 'hg_edd');
$currencies['RON'] = __('Romanian Leu', 'hg_edd');
$currencies['RSD'] = __('Serbian Dinar', 'hg_edd');
$currencies['RUB'] = __('Russian Ruble', 'hg_edd');
$currencies['RWF'] = __('Rwandan Franc', 'hg_edd');
$currencies['SAR'] = __('Saudi Riyal', 'hg_edd');
$currencies['SBD'] = __('Solomon Islands Dollar', 'hg_edd');
$currencies['SCR'] = __('Seychellois Rupee', 'hg_edd');
$currencies['SEK'] = __('Swedish Krona', 'hg_edd');
$currencies['SGD'] = __('Singapore Dollar', 'hg_edd');
$currencies['SHP'] = __('Saint Helenian Pound', 'hg_edd');
$currencies['SLL'] = __('Sierra Leonean Leone', 'hg_edd');
$currencies['SOS'] = __('Somali Shilling', 'hg_edd');
$currencies['SRD'] = __('Surinamese Dollar', 'hg_edd');
$currencies['STD'] = __('São Tomé and Príncipe Dobra', 'hg_edd');
$currencies['SVC'] = __('Salvadoran Colón', 'hg_edd');
$currencies['SZL'] = __('Swazi Lilangeni', 'hg_edd');
$currencies['THB'] = __('Thai Baht', 'hg_edd');
$currencies['TJS'] = __('Tajikistani Somoni', 'hg_edd');
$currencies['TOP'] = __('Tongan Paʻanga', 'hg_edd');
$currencies['TRY'] = __('Turkish Lira', 'hg_edd');
$currencies['TTD'] = __('Trinidad and Tobago Dollar', 'hg_edd');
$currencies['TWD'] = __('New Taiwan Dollar', 'hg_edd');
$currencies['TZS'] = __('Tanzanian Shilling', 'hg_edd');
$currencies['UAH'] = __('Ukrainian Hryvnia', 'hg_edd');
$currencies['UGX'] = __('Ugandan Shilling', 'hg_edd');
$currencies['USD'] = __('United States Dollar', 'hg_edd');
$currencies['UYU'] = __('Uruguayan Peso', 'hg_edd');
$currencies['UZS'] = __('Uzbekistani Som', 'hg_edd');
$currencies['VEF'] = __('Venezuelan Bolívar', 'hg_edd');
$currencies['VND'] = __('Vietnamese Đồng', 'hg_edd');
$currencies['VUV'] = __('Vanuatu Vatu', 'hg_edd');
$currencies['WST'] = __('Samoan Tala', 'hg_edd');
$currencies['XAF'] = __('Central African Cfa Franc', 'hg_edd');
$currencies['XCD'] = __('East Caribbean Dollar', 'hg_edd');
$currencies['XOF'] = __('West African Cfa Franc', 'hg_edd');
$currencies['XPF'] = __('Cfp Franc', 'hg_edd');
$currencies['YER'] = __('Yemeni Rial', 'hg_edd');
$currencies['ZAR'] = __('South African Rand', 'hg_edd');
$currencies['ZMW'] = __('Zambian Kwacha', 'hg_edd');
return $currencies;
}
add_filter('edd_currencies', 'hg_stripe_checkout_all_currencies');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment