• Perform signup with the given data and callbacks.

    Parameters

    • data: SimpleSignupData

      Signup payload as specified by SimpleSignupData.

    • onSuccess: Function

      Callback called if signup was successful.

    • onError: Function

      Callback called if signup failed. Content contains Array of Objs with errorKeys (i18nKey) and errorTypes (type)

      List of errors

      STATUS CODES 400 (BAD REQUESTS)

      Issue list may contain several issues. Not just one item.
      In Case of Error with status 400 theres is no way to by pass of fix via user input.

      Signup via Script / Bot detected
      Status: 400
      Content: {"IssueList":[{"i18nKey":"recapture_insufficient_score","source":"","type":"bad_request_error"}]}
      STATUS CODES 406 (VALIDATION ERROR)

      Issue list may contain several issues. Not just one item.

      Email address is missing
      Status: 406
      Content:{"IssueList":[{"i18nKey":"missing_entity","source":"email","type":"validation_failure"}
      Email address already exists
      Status: 406
      Content: {"IssueList":[{"i18nKey":"user_email_exists","source":"email","type":"validation_failure"}]}
      User has to accept terms and conditions
      Status: 406
      Content: {"IssueList":[{"i18nKey":"user_must_accept_terms_and_conditions","source":"acceptTermsAndConditions","type":"validation_failure"}]}
      User has to accept gdpr
      Status: 406
      Content: {"IssueList":[{"i18nKey":"user_must_accept_gdpr","source":"acceptGDPR","type":"validation_failure"}]}

    Returns void