import HenrySDK from '@henrylabs/sdk';const client = new HenrySDK({ apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted});const response = await client.wallet.createCardCollection({ 'x-user-id': 'x-user-id' });console.log(response.message);
Returns a modal URL for users to save payment cards. Supports both authenticated and guest card collection
POST
/
wallet
/
card-collect
JavaScript
Copy
import HenrySDK from '@henrylabs/sdk';const client = new HenrySDK({ apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted});const response = await client.wallet.createCardCollection({ 'x-user-id': 'x-user-id' });console.log(response.message);