Generate a Stripe token from a scan
-
Provide a Stripe key
You will need to provide a stripe key in one of two ways.
- (preferred) Provide a private Stripe Key to Dyneti
- Pass a publishable Stripe Key in the Scan Configuration
const config = {
...
stripePublishableApiKey: "pk_asdf1234",
...
} -
(Optional) If the card's expiration date is known, you should set the value in the
scan.present
options parameter with the formatMM/YY
const options = {
cardExpirationDate: "03/28", // MM/YY format
}
const { data, completed } = await scan.present(
userId,
verify,
options,
);