From 48b9e77b83d1c6704c48682345c2f60c700853e9 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Mon, 23 Oct 2023 21:55:15 +0200 Subject: [PATCH] fix payment descriptions --- plugins/mollie/app/controllers/payments/mollie_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mollie/app/controllers/payments/mollie_controller.rb b/plugins/mollie/app/controllers/payments/mollie_controller.rb index c1828f92e..510b61c1f 100644 --- a/plugins/mollie/app/controllers/payments/mollie_controller.rb +++ b/plugins/mollie/app/controllers/payments/mollie_controller.rb @@ -39,7 +39,7 @@ 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: { @@ -47,7 +47,7 @@ def create 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: {