Module: PinPayment

Defined in:
lib/pin_payment.rb,
lib/pin_payment/base.rb,
lib/pin_payment/card.rb,
lib/pin_payment/error.rb,
lib/pin_payment/charge.rb,
lib/pin_payment/refund.rb,
lib/pin_payment/balance.rb,
lib/pin_payment/version.rb,
lib/pin_payment/customer.rb,
lib/pin_payment/transfer.rb,
lib/pin_payment/recipient.rb,
lib/pin_payment/bank_account.rb

Defined Under Namespace

Modules: Version Classes: Balance, BankAccount, Base, Card, Charge, Customer, Error, Recipient, Refund, Transfer

Constant Summary collapse

@@api_url =
'https://test-api.pin.net.au'
@@secret_key =
nil
@@public_key =
nil

Class Method Summary collapse

Class Method Details

.api_urlObject



18
19
20
# File 'lib/pin_payment.rb', line 18

def self.api_url
  @@api_url
end

.api_url=(url) ⇒ Object



22
23
24
25
# File 'lib/pin_payment.rb', line 22

def self.api_url=(url)
  url = 'https://' + url unless url.include?('https://')
  @@api_url = url
end

.public_keyObject



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

def self.public_key
  @@public_key
end

.public_key=(key) ⇒ Object



39
40
41
# File 'lib/pin_payment.rb', line 39

def self.public_key=(key)
  @@public_key = key
end

.secret_keyObject



27
28
29
# File 'lib/pin_payment.rb', line 27

def self.secret_key
  @@secret_key
end

.secret_key=(key) ⇒ Object



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

def self.secret_key=(key)
  @@secret_key = key
end