Skip to content

Commit

Permalink
fix payment descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
yksflip committed Oct 23, 2023
1 parent 494a97a commit 48b9e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mollie/app/controllers/payments/mollie_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ def create
payment_state: 'open',
payment_method: method.id,
financial_transaction_type: ft_type,
note: t('.controller.transaction_note', method: nil)
note: t('.controller.transaction_note', method: method.description)
)
payment = Mollie::Payment.create(
amount: {
value: format('%.2f', amount),
currency: 'EUR' # @todo payment_currency
},
method: method.id,
description: "#{@transaction.id}, #{@ordergroup.id}, #{FoodsoftConfig[:name]}",
description: " #{FoodsoftConfig[:name]}: Continue to add credit to #{@ordergroup.name}",
redirectUrl: result_payments_mollie_url(id: @transaction.id),
webhookUrl: request.local? ? 'https://localhost.com' : check_payments_mollie_url, # Workaround for local development
metadata: {
Expand Down

0 comments on commit 48b9e77

Please sign in to comment.