app/models/spree/gateway/authorize_net_cim.rb
def create_customer_profile(payment)
        options = options_for_create_customer_profile(payment)
        response = cim_gateway.create_customer_profile(options)
        if response.success?
          { customer_profile_id: response.params['customer_profile_id'],
            customer_payment_profile_id: response.params['customer_payment_profile_id_list'].values.first }
        else
          payment.send(:gateway_error, response)
        end
      end
# Create a new CIM customer profile ready to accept a payment
Create a new CIM customer profile ready to accept a payment
Create a new CIM customer profile ready to accept a payment
def create_customer_profile(payment)
        options = options_for_create_customer_profile(payment)
        response = cim_gateway.create_customer_profile(options)
        if response.success?
          { customer_profile_id: response.params['customer_profile_id'],
            customer_payment_profile_id: response.params['customer_payment_profile_id_list'].values.first }
        else
          payment.send(:gateway_error, response)
        end
      end
def create_customer_profile ( payment ) options = options_for_create_customer_profile ( payment ) response = cim_gateway . create_customer_profile ( options ) if response . success? { customer_profile_id : response . params [ 'customer_profile_id' ] , customer_payment_profile_id : response . params [ 'customer_payment_profile_id_list' ] . values . first } else payment . send ( :gateway_error , response ) end end
Create a new CIM customer profile ready to accept a payment
Create a new CIM customer profile ready to accept a payment
payment