Skip to content

Instantly share code, notes, and snippets.

@stevegraham
Last active June 18, 2020 15:48
Show Gist options
  • Save stevegraham/cbed6aa04a1491a20eb59aa5fe5cfae6 to your computer and use it in GitHub Desktop.
Save stevegraham/cbed6aa04a1491a20eb59aa5fe5cfae6 to your computer and use it in GitHub Desktop.
document.addEventListener("DOMContentLoaded", function() {
var tellerConnect = TellerConnect.setup({
applicationId: "your_app_id",
skipPicker: true,
onInit: function() {
document.querySelector("button.teller-connect").addEventListener("click", function() {
tellerConnect.open({institution: "chase"})
})
},
onSuccess: function(enrollment) {
console.log("User enrolled successfully", enrollment.accessToken);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment