Class: CloudPayments::Namespaces::Cards

Inherits:
Base
  • Object
show all
Defined in:
lib/cloud_payments/namespaces/cards.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #parent_path

Instance Method Summary collapse

Methods inherited from Base

#initialize, #request, resource_name

Constructor Details

This class inherits a constructor from CloudPayments::Namespaces::Base

Instance Method Details

#auth(attributes) ⇒ Object



10
11
12
13
# File 'lib/cloud_payments/namespaces/cards.rb', line 10

def auth(attributes)
  response = request(:auth, attributes)
  instantiate(response[:model])
end

#charge(attributes) ⇒ Object



5
6
7
8
# File 'lib/cloud_payments/namespaces/cards.rb', line 5

def charge(attributes)
  response = request(:charge, attributes)
  instantiate(response[:model])
end

#post3ds(attributes) ⇒ Object



15
16
17
18
# File 'lib/cloud_payments/namespaces/cards.rb', line 15

def post3ds(attributes)
  response = request(:post3ds, attributes)
  instantiate(response[:model])
end