dataCollector () {
    if (this.dataCollectorInitiated) return;

    this.dataCollectorInitiated = true;

    this.recurly.request.get({
      route: '/fraud_data_collector',
      done: (error, response) => {
        debug("response from recurly data collector", error, response);
        if (error) {
          throw errors('fraud-data-collector-request-failed', { error });
        } else if (response.content) {
          this.addNodes(response.content);
          this.emit('ready');
        }
      }
    });
  }
/**
   * requests the data collector form fields from the
   * Recurly server and injects them into the payment form
   */
requests the data collector form fields from the
Recurly server and injects them into the payment form
requests the data collector form fields from the Recurly server and injects them into the payment form
dataCollector () {
    if (this.dataCollectorInitiated) return;
    this.dataCollectorInitiated = true;
    this.recurly.request.get({
      route: '/fraud_data_collector',
      done: (error, response) => {
        debug("response from recurly data collector", error, response);
        if (error) {
          throw errors('fraud-data-collector-request-failed', { error });
        } else if (response.content) {
          this.addNodes(response.content);
          this.emit('ready');
        }
      }
    });
  }
dataCollector ( ) { if ( this . dataCollectorInitiated ) return ; this . dataCollectorInitiated = true ; this . recurly . request . get ( { route : '/fraud_data_collector' , done : ( error , response ) => { debug ( "response from recurly data collector" , error , response ) ; if ( error ) { throw errors ( 'fraud-data-collector-request-failed' , { error } ) ; } else if ( response . content ) { this . addNodes ( response . content ) ; this . emit ( 'ready' ) ; } } } ) ; }
requests the data collector form fields from the
 Recurly server and injects them into the payment form
requests the data collector form fields from the Recurly server and injects them into the payment form