lib/khipu/khipu_api_endpoint.rb
def create_receiver(args)
      endpoint = 'createReceiver'
      check_arguments(args, [:email, :first_name, :last_name, :notify_url, :identifier, :bussiness_category, :bussiness_name,
                             :phone, :address_line_1, :address_line_2, :address_line_3, :country_code])
      params = {
          receiver_id: @receiver_id,
          email: args[:email],
          first_name: args[:first_name],
          last_name: args[:last_name],
          notify_url: args[:notify_url],
          identifier: args[:identifier],
          bussiness_category: args[:bussiness_category],
          bussiness_name: args[:bussiness_name],
          phone: args[:phone],
          address_line_1: args[:address_line_1],
          address_line_2: args[:address_line_2],
          address_line_3: args[:address_line_3],
          country_code: args[:country_code]
      }
      execute(endpoint, params, true, true, Khipu::INTEGRATOR_API_URL)
    end
def create_receiver(args)
      endpoint = 'createReceiver'
      check_arguments(args, [:email, :first_name, :last_name, :notify_url, :identifier, :bussiness_category, :bussiness_name,
                             :phone, :address_line_1, :address_line_2, :address_line_3, :country_code])
      params = {
          receiver_id: @receiver_id,
          email: args[:email],
          first_name: args[:first_name],
          last_name: args[:last_name],
          notify_url: args[:notify_url],
          identifier: args[:identifier],
          bussiness_category: args[:bussiness_category],
          bussiness_name: args[:bussiness_name],
          phone: args[:phone],
          address_line_1: args[:address_line_1],
          address_line_2: args[:address_line_2],
          address_line_3: args[:address_line_3],
          country_code: args[:country_code]
      }
      execute(endpoint, params, true, true, Khipu::INTEGRATOR_API_URL)
    end
def create_receiver ( args ) endpoint = 'createReceiver' check_arguments ( args , [ :email , :first_name , :last_name , :notify_url , :identifier , :bussiness_category , :bussiness_name , :phone , :address_line_1 , :address_line_2 , :address_line_3 , :country_code ] ) params = { receiver_id : @receiver_id , email : args [ :email ] , first_name : args [ :first_name ] , last_name : args [ :last_name ] , notify_url : args [ :notify_url ] , identifier : args [ :identifier ] , bussiness_category : args [ :bussiness_category ] , bussiness_name : args [ :bussiness_name ] , phone : args [ :phone ] , address_line_1 : args [ :address_line_1 ] , address_line_2 : args [ :address_line_2 ] , address_line_3 : args [ :address_line_3 ] , country_code : args [ :country_code ] } execute ( endpoint , params , true , true , Khipu :: INTEGRATOR_API_URL ) end
Integrator API
Integrator API