Last active
          March 18, 2021 16:06 
        
      - 
      
- 
        Save ctrlaltdylan/39fe1c53117516a3f24950b92f51a870 to your computer and use it in GitHub Desktop. 
    Vouched extensions example prototype
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const vouched = window.Vouched({ | |
| appId: { process.env.VOUCHED_API_KEY }, | |
| additionalSteps: [ | |
| ((priorStep, nextStep)) => { | |
| // priorStep is a callback to go back 1 step | |
| // nextStep is a callback that will go to the next step, if none then vouched.onComplete is called | |
| return ( | |
| <div> | |
| <h2>Please provide your signature</h2> | |
| <SignatureCapture /> | |
| <Button onClick={priorStep}> | |
| Back | |
| </Button> | |
| <Button onClick={nextStep}> | |
| Submit | |
| </Button> | |
| </div> | |
| ) | |
| } | |
| ] | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment