app/models/spree/gateway/authorize_net_cim.rb
def create_profile(payment)
      if payment.source.gateway_customer_profile_id.nil?
        profile_hash = create_customer_profile(payment)
        payment.source.update(gateway_customer_profile_id: profile_hash[:customer_profile_id], gateway_payment_profile_id: profile_hash[:customer_payment_profile_id])
      end
    end
# Create a new CIM customer profile ready to accept a payment. Called by Spree::Payment on after_save.
Create a new CIM customer profile ready to accept a payment. Called by Spree::Payment on after_save.
Create a new CIM customer profile ready to accept a payment . Called by Spree :: Payment on after_save .
def create_profile(payment)
      if payment.source.gateway_customer_profile_id.nil?
        profile_hash = create_customer_profile(payment)
        payment.source.update(gateway_customer_profile_id: profile_hash[:customer_profile_id], gateway_payment_profile_id: profile_hash[:customer_payment_profile_id])
      end
    end
def create_profile ( payment ) if payment . source . gateway_customer_profile_id . nil? profile_hash = create_customer_profile ( payment ) payment . source . update ( gateway_customer_profile_id : profile_hash [ :customer_profile_id ] , gateway_payment_profile_id : profile_hash [ :customer_payment_profile_id ] ) 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