Module: Newebpay
- Defined in:
- lib/newebpay.rb,
lib/newebpay/rails.rb,
lib/newebpay/config.rb,
lib/newebpay/engine.rb,
lib/newebpay/version.rb,
lib/newebpay/bank_codes.rb,
lib/newebpay/error_codes.rb,
lib/newebpay/rails/engine.rb,
lib/newebpay/attr_key_helper.rb,
lib/newebpay/newebpay_helper.rb,
app/helpers/newebpay/mpg_helper.rb,
app/helpers/newebpay/donation_helper.rb,
app/helpers/newebpay/periodical_helper.rb,
app/helpers/newebpay/application_helper.rb,
app/jobs/newebpay/rails/application_job.rb,
lib/generators/newebpay/install_generator.rb,
app/controllers/newebpay/application_controller.rb,
app/controllers/newebpay/mpg_callbacks_controller.rb,
app/controllers/newebpay/notify_callbacks_controller.rb,
app/controllers/newebpay/periodical_callbacks_controller.rb,
app/controllers/newebpay/payment_code_callbacks_controller.rb,
app/controllers/newebpay/donation_notify_callbacks_controller.rb,
app/controllers/newebpay/periodical_notify_callbacks_controller.rb,
app/controllers/newebpay/cancel_auth_notify_callbacks_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, AttrKeyHelper, CancelAuth, CloseFund, Donation, DonationHelper, Generators, MPG, MPGHelper, NewebpayHelper, Periodical, PeriodicalHelper, QueryTrade, Rails
Classes: ApplicationController, BankCodes, CancelAuthNotifyCallbacksController, Config, DonationNotifyCallbacksController, Engine, ErrorCodes, MPGCallbacksController, NotifyCallbacksController, PaymentCodeCallbacksController, PeriodicalCallbacksController, PeriodicalNotifyCallbacksController
Constant Summary
collapse
- VERSION =
"2.0.1"
Class Method Summary
collapse
Class Method Details
.bank(bank_code) ⇒ Object
43
44
45
|
# File 'lib/newebpay.rb', line 43
def self.bank(bank_code)
BankCodes.bank_codes(bank_code.to_sym)
end
|
.config ⇒ Object
35
36
37
|
# File 'lib/newebpay.rb', line 35
def self.config
@config ||= Config.new
end
|
31
32
33
|
# File 'lib/newebpay.rb', line 31
def self.configure
yield config
end
|
.get_error_message(code) ⇒ Object
39
40
41
|
# File 'lib/newebpay.rb', line 39
def self.get_error_message(code)
ErrorCodes.error_codes[code.to_sym]
end
|
.host ⇒ Object
27
28
29
|
# File 'lib/newebpay.rb', line 27
def self.host
@host ||= ::Rails.application.routes.default_url_options[:host]
end
|