Class: Tappay::PaymentBase

Inherits:
Client
  • Object
show all
Defined in:
lib/tappay/payment_base.rb

Constant Summary collapse

VALID_INSTALMENT_VALUES =
[0, 3, 6, 12, 18, 24, 30].freeze

Instance Attribute Summary

Attributes inherited from Client

#options

Instance Method Summary collapse

Methods inherited from Client

#post

Constructor Details

#initialize(options = {}) ⇒ PaymentBase

Returns a new instance of PaymentBase.



7
8
9
10
# File 'lib/tappay/payment_base.rb', line 7

def initialize(options = {})
  super
  validate_options!
end

Instance Method Details

#executeObject



12
13
14
# File 'lib/tappay/payment_base.rb', line 12

def execute
  post(endpoint_url, payment_data)
end