Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Add default payment currency to config.php #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewkett
Copy link

When I installed the newest extension with multi currency I was getting an error on checkout. I was seeing this in our logs:

==> log/magento/payment.log <==
[2018-06-20 11:27:05] main.DEBUG: array (
  'redirect response body' =>
  stdClass::__set_state(array(
     'result' => 'ERROR',
     'error' => 'Specified currency is invalid.',
  )),
) [] []
[2018-06-20 11:27:05] main.DEBUG: array (
  'FAILED TO GET returnURL' =>
  stdClass::__set_state(array(
     'result' => 'ERROR',
     'error' => 'Specified currency is invalid.',
  )),
) [] []

This was because I hadn't gone to admin unchecked "use default" on the payment currency config and saved, therefore there was no database config for payment_currency. This change means that if no config is explicitly set in admin it will default to NZD.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant