Module: Tappay

Defined in:
lib/tappay.rb,
lib/tappay/client.rb,
lib/tappay/errors.rb,
lib/tappay/refund.rb,
lib/tappay/version.rb,
lib/tappay/endpoints.rb,
lib/tappay/card_holder.rb,
lib/tappay/jko_pay/pay.rb,
lib/tappay/line_pay/pay.rb,
lib/tappay/payment_base.rb,
lib/tappay/apple_pay/pay.rb,
lib/tappay/configuration.rb,
lib/tappay/google_pay/pay.rb,
lib/tappay/credit_card/pay.rb,
lib/tappay/transaction/query.rb,
lib/tappay/credit_card/instalment.rb

Defined Under Namespace

Modules: ApplePay, CreditCard, Endpoints, GooglePay, JkoPay, LinePay, Transaction Classes: CardHolder, Client, Configuration, ConfigurationError, ConnectionError, Error, PaymentBase, PaymentError, QueryError, Refund, RefundError, ValidationError

Constant Summary collapse

VERSION =
'0.21.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



31
32
33
# File 'lib/tappay.rb', line 31

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



35
36
37
38
# File 'lib/tappay.rb', line 35

def configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end

.resetObject



40
41
42
# File 'lib/tappay.rb', line 40

def reset
  self.configuration = Configuration.new
end