Module: Walletone
- Defined in:
- lib/walletone/fields.rb,
lib/walletone.rb,
lib/walletone/form.rb,
lib/walletone/signer.rb,
lib/walletone/payment.rb,
lib/walletone/version.rb,
lib/walletone/middleware.rb,
lib/walletone/notification.rb,
lib/walletone/errors/bad_url_error.rb,
lib/walletone/errors/walletone_error.rb
Overview
Поля для формы оплаты формируемые приложением
Defined Under Namespace
Modules: Middleware
Classes: BadUrlError, Configuration, Fields, Form, Notification, Payment, Signer, WalletoneError
Constant Summary
collapse
- API_URL =
'https://api.w1.ru/OpenApi/'
- V1_CHECKOUT_URL =
'https://www.walletone.com/checkout/default.aspx'
- V2_CHECKOUT_URL =
'https://wl.walletone.com/checkout/checkout/Index'
- VERSION =
'0.1.1'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
41
42
43
|
# File 'lib/walletone.rb', line 41
def self.config
Configuration.instance
end
|
45
46
47
|
# File 'lib/walletone.rb', line 45
def self.configure
yield config
end
|
.logger ⇒ Object
49
50
51
|
# File 'lib/walletone.rb', line 49
def self.logger
config.logger
end
|
.notify_error(error, *args) ⇒ Object
35
36
37
38
39
|
# File 'lib/walletone.rb', line 35
def self.notify_error error, *args
logger.error "Catch error #{error}"
return unless config.error_notifier
config.error_notifier.send self.config.error_notify_method, error, *args
end
|