diff --git a/app/models/avoir.rb b/app/models/avoir.rb index e8fec2e70..afeaaeea2 100644 --- a/app/models/avoir.rb +++ b/app/models/avoir.rb @@ -7,7 +7,7 @@ class Avoir < Invoice after_create :notify_admins_refund_created - validates :payment_method, inclusion: { in: %w[stripe cheque transfer none cash wallet] } + validates :payment_method, inclusion: { in: %w[card cheque transfer none cash wallet] } attr_accessor :invoice_items_ids diff --git a/app/pdfs/pdf/invoice.rb b/app/pdfs/pdf/invoice.rb index e87f7cc34..5add0adf0 100644 --- a/app/pdfs/pdf/invoice.rb +++ b/app/pdfs/pdf/invoice.rb @@ -278,7 +278,7 @@ class PDF::Invoice < Prawn::Document payment_verbose = I18n.t('invoices.refund_on_DATE', DATE:I18n.l(invoice.avoir_date.to_date)) + ' ' case invoice.payment_method when 'stripe' - payment_verbose += I18n.t('invoices.by_stripe_online_payment') + payment_verbose += I18n.t('invoices.by_card_online_payment') when 'cheque' payment_verbose += I18n.t('invoices.by_cheque') when 'transfer' diff --git a/config/locales/en.yml b/config/locales/en.yml index 1e368c820..148ef2264 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -95,7 +95,7 @@ en: including_amount_payed_on_ordering: "Including amount payed on ordering" total_amount: "Total amount" refund_on_DATE: "Refund on %{DATE}" - by_stripe_online_payment: "by Stripe (online payment)" + by_card_online_payment: "by card (online payment)" by_cheque: "by cheque" by_transfer: "by transfer" by_cash: "by cash"