Class: RaveTransactions

Inherits:
RaveBaseObject
  • Object
show all
Defined in:
lib/rave_ruby/rave_objects/transactions.rb

Instance Method Summary collapse

Instance Method Details

#chargeCards(client_data) ⇒ Object

Card payment



14
15
16
17
18
19
20
21
# File 'lib/rave_ruby/rave_objects/transactions.rb', line 14

def chargeCards(client_data )
      payload = {
        "PBFPubKey" => self.PBFPubKey,
        "client" => client_data,
        "alg" => "3DES-24"
      }
      perform_post("#{BASE::CHARGE_ENDPOINT}/charge", payload)
end

#encrypt(key, data) ⇒ Object

encrpt the data



7
8
9
10
11
# File 'lib/rave_ruby/rave_objects/transactions.rb', line 7

def encrypt(key, data)
  key = key
  data = data
  client_data = encrypt(key, data)
end