Class: RaveTransactions
- Inherits:
-
RaveBaseObject
- Object
- RaveBaseObject
- RaveTransactions
- Defined in:
- lib/rave_ruby/rave_objects/transactions.rb
Instance Method Summary collapse
-
#chargeCards(client_data) ⇒ Object
Card payment.
-
#encrypt(key, data) ⇒ Object
encrpt the data.
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 |