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
-
.app_key ⇒ Object
Returns the value of attribute app_key.
-
.response_type ⇒ Object
Returns the value of attribute response_type.
-
.sandbox ⇒ Object
Returns the value of attribute sandbox.
-
.unique_id ⇒ Object
Returns the value of attribute unique_id.
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
initializer with all the configuration values.
Class Attribute Details
.app_key ⇒ Object
Returns the value of attribute app_key.
6 7 8 |
# File 'lib/zooz_payments.rb', line 6 def app_key @app_key end |
.response_type ⇒ Object
Returns the value of attribute response_type.
6 7 8 |
# File 'lib/zooz_payments.rb', line 6 def response_type @response_type end |
.sandbox ⇒ Object
Returns the value of attribute sandbox.
6 7 8 |
# File 'lib/zooz_payments.rb', line 6 def sandbox @sandbox end |
.unique_id ⇒ Object
Returns the value of attribute unique_id.
6 7 8 |
# File 'lib/zooz_payments.rb', line 6 def unique_id @unique_id end |
.url ⇒ Object
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
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 |