class PayCertify::Gateway::Customer

Constants

API_ENDPOINT
ATTRIBUTES

Public Instance Methods

attributes_to_gateway_format() click to toggle source
# File lib/paycertify/gateway/customer.rb, line 20
def attributes_to_gateway_format
  formatted = super
  attribute_mapping = PayCertify::Gateway::AttributeMapping
  formatted.merge! attribute_mapping.type(self)
  formatted
end
save!() click to toggle source
# File lib/paycertify/gateway/customer.rb, line 14
def save!
  super
  self.customer_id = self.response['response']['customer_key']
  self
end