class MC2P::PayData
PayData
object
Public Class Methods
new(json_dict, resource)
click to toggle source
Initializes an object item Params:
json_dict
-
Data of the object
resource
-
Resource
used to delete, save, create or retrieve the object
Calls superclass method
MC2P::ReadOnlyObjectItem::new
# File lib/objects.rb, line 128 def initialize(json_dict, resource) super(json_dict, resource, 'token') @cs_mixin = CardShareObjectItemMixin.new(json_dict, resource, 'token') end
Public Instance Methods
card(gateway_code, data = nil)
click to toggle source
Send card details Params:
gateway_code
-
gateway_code to send
data
-
data to send
Returns: response dictionary
# File lib/objects.rb, line 138 def card(gateway_code, data = nil) @cs_mixin.json_dict = @json_dict @cs_mixin._deleted = @_deleted @cs_mixin.card(gateway_code, data) @json_dict = @cs_mixin.json_dict @_deleted = @cs_mixin._deleted end