Module: ZoozPayments

Defined in:
lib/zooz_payments.rb,
lib/zooz_payments/api.rb,
lib/zooz_payments/version.rb

Defined Under Namespace

Classes: Api

Constant Summary collapse

VERSION =
'0.0.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_keyObject

Returns the value of attribute app_key.



6
7
8
# File 'lib/zooz_payments.rb', line 6

def app_key
  @app_key
end

.response_typeObject

Returns the value of attribute response_type.



6
7
8
# File 'lib/zooz_payments.rb', line 6

def response_type
  @response_type
end

.sandboxObject

Returns the value of attribute sandbox.



6
7
8
# File 'lib/zooz_payments.rb', line 6

def sandbox
  @sandbox
end

.unique_idObject

Returns the value of attribute unique_id.



6
7
8
# File 'lib/zooz_payments.rb', line 6

def unique_id
  @unique_id
end

.urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/zooz_payments.rb', line 6

def url
  @url
end

Class Method Details

.setup {|_self| ... } ⇒ Object

initializer with all the configuration values

Yields:

  • (_self)

Yield Parameters:

  • _self (ZoozPayments)

    the object that the method was called on



9
10
11
12
13
# File 'lib/zooz_payments.rb', line 9

def setup
  self.response_type = 'NVP'
  yield self
  self.url = self.sandbox ? 'https://sandbox.zooz.co/mobile/SecuredWebServlet':'https://app.zooz.com/mobile/SecuredWebServlet'
end