add mollie plugin

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

View file

@ -0,0 +1,34 @@
en:
activerecord:
attributes:
home:
credit_your_account: 'Credit your Account'
payments:
mollie_ideal:
new:
title: 'Credit your account'
form:
amount_pay: 'Amount to pay'
method: 'Pay using'
submit: 'Pay at your bank'
financial_transaction_type: 'Financial Transaction Type'
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'
paysafecard: 'paysafecard'
creditcard: 'creditcard'
paypal: 'paypal'
mistercash: 'mistercash'
bitcoin: 'bitcoin'

View file

@ -0,0 +1,32 @@
nl:
activerecord:
attributes:
home:
credit_your_account: 'Crediteer uw account'
payments:
mollie_ideal:
new:
title: 'Betalen'
form:
amount_pay: 'Te betalen bedrag'
method: 'Hoe te betalen'
submit: 'Betalen'
financial_transaction_type: 'Financiële-transactietype'
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'
paysafecard: 'paysafecard'
creditcard: 'creditcard'
paypal: 'paypal'
mistercash: 'mistercash'
bitcoin: 'bitcoin'

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