diff --git a/commerce_stripe.module b/commerce_stripe.module index 980ae6e..076fe32 100755 --- a/commerce_stripe.module +++ b/commerce_stripe.module @@ -1518,6 +1518,8 @@ function _commerce_stripe_set_api_key($payment_method) { */ function commerce_stripe_payment_currencies() { commerce_stripe_load_library(); + $payment_method = commerce_payment_method_instance_load('commerce_stripe|commerce_payment_commerce_stripe'); + _commerce_stripe_set_api_key($payment_method); $info = \Stripe\Account::retrieve(); $country_spec = \Stripe\CountrySpec::retrieve($info->country); $supported_currencies = $country_spec->supported_payment_currencies;