app/controllers/subscriptions_controller.rb
# subcriber to update the billing address
subcriber to update the billing address
subcriber to update the billing address
def create
        addon = lookup_external_id_in_addons(params)
        if addon[:result] == 'success'
            render json: { subscriber: update_subscriber(addon[:external_id].merge(params)) || {} }
        else
            render json: { subscriber: addon.to_json }
        end
    end
def create addon = lookup_external_id_in_addons ( params ) if addon [ :result ] == 'success' render json : { subscriber : update_subscriber ( addon [ :external_id ] . merge ( params ) ) || { } } else render json : { subscriber : addon . to_json } end end
subcriber to update the billing address
subcriber to update the billing address