diff --git a/lib/offsite_payments/integrations/mollie_ideal.rb b/lib/offsite_payments/integrations/mollie_ideal.rb index 8ae4d1525..7faac0b81 100644 --- a/lib/offsite_payments/integrations/mollie_ideal.rb +++ b/lib/offsite_payments/integrations/mollie_ideal.rb @@ -23,7 +23,7 @@ module MollieIdeal ] def self.redirect_param_label - "Select your bank" + "Selecteer uw bank" end def self.redirect_param_options(options = {}) diff --git a/lib/offsite_payments/integrations/mollie_mistercash.rb b/lib/offsite_payments/integrations/mollie_mistercash.rb index 8c01a4c0d..308639bed 100644 --- a/lib/offsite_payments/integrations/mollie_mistercash.rb +++ b/lib/offsite_payments/integrations/mollie_mistercash.rb @@ -39,6 +39,7 @@ def initialize(order, account, options = {}) :description => options[:description], :redirectUrl => options[:return_url], :method => 'mistercash', + :locale => 'nl_BE', :metadata => { :order => order } } diff --git a/test/unit/integrations/mollie_mistercash/mollie_mistercash_helper_test.rb b/test/unit/integrations/mollie_mistercash/mollie_mistercash_helper_test.rb index 1530c523b..a85e9399c 100644 --- a/test/unit/integrations/mollie_mistercash/mollie_mistercash_helper_test.rb +++ b/test/unit/integrations/mollie_mistercash/mollie_mistercash_helper_test.rb @@ -19,7 +19,7 @@ def setup def test_credential_based_url @mock_api.expects(:post_request) - .with('payments', :amount => 500, :description => 'Order #111', :method => 'mistercash', :redirectUrl => 'https://return.com', :metadata => {:order => 'order-500'}) + .with('payments', :amount => 500, :description => 'Order #111', :method => 'mistercash', :locale => 'nl_BE', :redirectUrl => 'https://return.com', :metadata => {:order => 'order-500'}) .returns(CREATE_PAYMENT_RESPONSE_JSON) assert_equal Hash.new, @helper.fields @@ -32,7 +32,7 @@ def test_credential_based_url def test_credential_based_url_errors @mock_api.expects(:post_request) - .with('payments', :amount => 500, :description => 'Order #111', :method => 'mistercash', :redirectUrl => 'https://return.com', :metadata => {:order => 'order-500'}) + .with('payments', :amount => 500, :description => 'Order #111', :method => 'mistercash', :locale => 'nl_BE', :redirectUrl => 'https://return.com', :metadata => {:order => 'order-500'}) .raises(ActiveUtils::ResponseError.new(stub(:code => "403", :message => "Internal Server Error", :body => '{"error": {"message": "bleh"}}'))) assert_raises ActionViewHelperError do