Skip to content

Commit

Permalink
Show correct payment method name on order completion page
Browse files Browse the repository at this point in the history
  • Loading branch information
vernondegoede committed Nov 16, 2018
1 parent c164fd7 commit d8efeb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

gem 'mollie-api-ruby', '~> 4.1.1'
gem 'mollie-api-ruby', '~> 4.1.3'

# Specify your gem's dependencies in spree_mollie_gateway.gemspec
gemspec
4 changes: 4 additions & 0 deletions app/models/spree/mollie_payment_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def name
'Giropay'
when ::Mollie::Method::DIRECTDEBIT then
'SEPA Direct debit'
when ::Mollie::Method::KLARNASLICEIT then
'Klarna Slice it'
when ::Mollie::Method::KLARNAPAYLATER then
'Klarna Pay Later'
else
'Mollie'
end
Expand Down
2 changes: 1 addition & 1 deletion spree_mollie_gateway.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'sqlite3'

spec.add_runtime_dependency 'mollie-api-ruby', '~> 4.1.1'
spec.add_runtime_dependency 'mollie-api-ruby', '~> 4.1.3'
end

0 comments on commit d8efeb5

Please sign in to comment.