Embed a Claim Button
How-To Guide: Add a credential claim button to any website using the LearnCard Embed SDK
Prerequisites
Step 1: Create Your Integration & Template
Step 2: Add the SDK
<script src="https://cdn.jsdelivr.net/npm/@learncard/embed-sdk@latest/dist/learncard.js"></script>npm install @learncard/embed-sdkimport { init } from '@learncard/embed-sdk';Step 3: Initialize the SDK
Step 4: Customize Branding (Optional)
Step 5: Handle Success (Optional)
Claim Flow
Whitelisted Domains
Testing Locally
URL
Mode
Troubleshooting
See Also
Last updated
Was this helpful?