mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
parent
19f9a4eb71
commit
62c38d1f99
29 changed files with 660 additions and 16 deletions
|
@ -135,6 +135,10 @@ payments_every_pay_seller_account: 'EUR3D1'
|
|||
payments_every_pay_api_user: 'api_user'
|
||||
payments_every_pay_api_key: 'api_key'
|
||||
|
||||
e_invoice_provider_name: 'omniva'
|
||||
e_invoice_provider_password:
|
||||
e_invoice_provider_test_mode: 'false'
|
||||
|
||||
user_session_timeout: '3600' # 1 hour
|
||||
secure_session_cookies: 'false' # true|false
|
||||
same_site_session_cookies: 'false' # false|strict|lax
|
||||
|
|
3
config/initializers/e_invoice.rb
Normal file
3
config/initializers/e_invoice.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
provider_config = { password: ENV['e_invoice_provider_password'],
|
||||
test_mode: ENV['e_invoice_provider_test_mode'] == 'true' }
|
||||
EInvoice.provider = EInvoice::Providers::OmnivaProvider.new(provider_config)
|
|
@ -21,3 +21,12 @@ en:
|
|||
linked_users:
|
||||
header: Linked users
|
||||
switch_btn: Switch
|
||||
|
||||
balance_auto_reload:
|
||||
header: Balance Auto-Reload
|
||||
enabled: Enabled
|
||||
enabled_state_details: Reload %{amount} when your balance drops to %{threshold}
|
||||
disabled: Disabled
|
||||
enable_btn: Enable
|
||||
disable_btn: Disable
|
||||
edit_btn: Edit
|
19
config/locales/registrar/settings/balance_auto_reload.en.yml
Normal file
19
config/locales/registrar/settings/balance_auto_reload.en.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
en:
|
||||
registrar:
|
||||
settings:
|
||||
balance_auto_reload:
|
||||
edit:
|
||||
header: Balance Auto-Reload
|
||||
|
||||
form:
|
||||
types:
|
||||
threshold:
|
||||
description: Automatically reload your balance when it drops to a minimum threshold
|
||||
amount_hint: must be greater than or equal to %{min_amount}
|
||||
submit_btn: Save
|
||||
|
||||
update:
|
||||
saved: Balance Auto-Reload setting has been updated
|
||||
|
||||
destroy:
|
||||
disabled: Balance Auto-Reload setting has been disabled
|
|
@ -115,6 +115,10 @@ Rails.application.routes.draw do
|
|||
put 'pay/return/:bank' => 'payments#back'
|
||||
post 'pay/callback/:bank' => 'payments#callback', as: 'response_payment_with'
|
||||
get 'pay/go/:bank' => 'payments#pay', as: 'payment_with'
|
||||
|
||||
namespace :settings do
|
||||
resource :balance_auto_reload, controller: :balance_auto_reload, only: %i[edit update destroy]
|
||||
end
|
||||
end
|
||||
|
||||
scope :registrar do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue