Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Fix: added currency for Gocardless based on mandate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivashankar committed Oct 21, 2019
1 parent e3800cd commit e095c77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/util/directDebitDecider.js
Expand Up @@ -5,12 +5,14 @@ const SUPPORTED_COUNTRIES = [
{ country: 'NL' },
{ country: 'FR' },
{ country: 'DE' },
{ country: 'DK' },
{ country: 'AT' },
{ country: 'ES' },
{ country: 'AU' },
{ country: 'BE' },
{ country: 'CY' },
{ country: 'EE' },
{ country: 'SE' },
{ country: 'IE' },
{ country: 'IT' },
{ country: 'LV' },
Expand Down
8 changes: 8 additions & 0 deletions app/lib/payment_processor/go_cardless/populator.rb
Expand Up @@ -61,8 +61,16 @@ def currency
case mandate.scheme.downcase
when 'becs'
'AUD'
when 'sepa_core'
'EUR'
when 'betalingsservice'
'DKK'
when 'pad'
'CAD'
when 'bacs'
'GBP'
when 'ach'
'USD'
when 'autogiro'
'SEK'
else
Expand Down

0 comments on commit e095c77

Please sign in to comment.