Digital Wallets

Learn how to add cards to digital wallets.

Provision Card - Digital Wallet (Enterprise)

API reference: Provision Card - Digital Wallet

Allow your cardholders to directly add payment cards to the device's digital wallet (e.g. Apple Pay) with one touch from your app.

This requires some additional setup and configuration. Please reach out to [email protected] or your account rep for more information.

POST https://api.lithic.com/v1/card/provision

Sample Request

curl https://api.lithic.com/v1/card/provision \
  -X POST \
  -H "Authorization: api-key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_token":"f5f905f5-8a8e-49bf-a9b4-c0adaa401456","digital_wallet":"GOOGLE_PAY"}'

Sample Response

{
    "data": {
        "provisioning_payload": "eyJjYXJ......"
    }
}
card_tokenThe unique token of the card to add to the device's digital wallet
digital_walletCurrently APPLE_PAY, GOOGLE_PAY and SAMSUNG_PAY are supported
nonce (optional)Required for APPLE_PAY. Base64 cryptographic nonce provided by the device's wallet
nonce_signatureRequired for APPLE_PAY. Base64 nonce signature provided by the device's wallet
certificate (optional)Required for APPLE_PAY. Apple's public leaf certificate. Base64 encoded in PEM format with headers(-----BEGIN CERTIFICATE-----) and trailers omitted. Provided by the device's wallet
account_token (multi-account users only)Token identifying the account the card will be associated with. Only applicable if using account enrollment. See Managing Identities for more information.

Returns provisioning_payload, a cryptographic payload representing a payment card that can be passed to a device's digital wallet. Each digital wallet has a different API; consult the wallet's documentation for more info.


Did this page help you?