Skip to content

Instantly share code, notes, and snippets.

@ctrlaltdylan
Last active March 18, 2021 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctrlaltdylan/39fe1c53117516a3f24950b92f51a870 to your computer and use it in GitHub Desktop.
Save ctrlaltdylan/39fe1c53117516a3f24950b92f51a870 to your computer and use it in GitHub Desktop.
Vouched extensions example prototype
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