Skip to main content

Generate a Worldpay Token From a Scan

1. Provide Worldpay Credentials to Dyneti

You will need to provide the following Worldpay credentials to Dyneti:

  • Worldpay Shared Key: Your merchant's shared secret key for API authentication
  • Worldpay Profile ID: The token provider profile ID (e.g., Dyneti_YourCompany_LVT)

2. Configure Your Integration

When initializing a scan with Worldpay tokenization, you need to provide your merchant identifier in the configuration:

const config = {
...
worldpayConfig: {
merchantId: "your-merchant-identifier-uuid", // Your Worldpay merchant identifier
},
...
}

3. (Optional) Provide Card Expiration Date

If the card's expiration date is known, you should set the value in the scan.present options parameter with the format MM/YY:

const options = {
cardExpirationDate: "03/28", // MM/YY format
}
const { data, completed } = await scan.present(
userId,
verify,
options,
);