add mollie plugin

This commit is contained in:
Philipp Rothmann 2023-10-02 22:46:46 +02:00
parent 55234b4e27
commit c59eefd219
21 changed files with 1117 additions and 0 deletions

View file

@ -0,0 +1,35 @@
en:
activerecord:
attributes:
home:
credit_your_account: 'Credit your Account'
payments:
mollie_ideal:
new:
title: 'Credit your account'
no_ordergroup: 'You need to be member of an ordergroup'
create:
invalid_amount: 'Invalid amount'
form:
amount_pay: 'Amount to pay'
method: 'Pay using'
submit: 'Pay at your bank'
financial_transaction_type: 'Financial Transaction Type'
fee: 'The transaction fee depends on your payment method'
controller:
result:
notice: 'Your account was credited %{amount} (transaction fee of %{fee}).'
failed: 'Payment failed.'
wait: 'Your account will be credited when the payment is received.'
transaction_note: '%{method} payment'
config:
keys:
use_mollie: 'Use Mollie'
mollie:
api_key: 'API key'
financial_transaction_type: 'Transaction type'
fee:
ideal: 'Ideal'
banktransfer: 'banktransfer'
creditcard: 'creditcard'
paypal: 'paypal'

View file

@ -0,0 +1,33 @@
nl:
activerecord:
attributes:
home:
credit_your_account: 'Crediteer uw account'
payments:
mollie_ideal:
new:
title: 'Betalen'
no_ordergroup: 'U dient lid te zijn van een ordergroep'
create:
invalid_amount: 'Ongeldig bedrag'
form:
amount_pay: 'Te betalen bedrag'
method: 'Hoe te betalen'
submit: 'Betalen'
financial_transaction_type: 'Financiële-transactietype'
fee: 'De transactiekosten van uw betalingsmiddel zijn'
controller:
result:
notice: ' Er is %{amount} bijgeschreven op uw account (transactiekosten van ${fee}).'
failed: 'Betaling mislukt.'
config:
keys:
use_mollie: 'Gebruik Mollie'
mollie:
api_key: 'API key'
financial_transaction_type: 'Transactie type'
fee:
ideal: 'Ideal'
banktransfer: 'banktransfer'
creditcard: 'creditcard'
paypal: 'paypal'

View file

@ -0,0 +1,11 @@
Rails.application.routes.draw do
scope '/:foodcoop' do
namespace :payments do
resource :mollie, controller: 'mollie_ideal', only: [:new, :create] do
post :check
get :result
get :cancel
end
end
end
end