For Card Reveal functionality (displaying PAN, CVV, EXP, PIN), continue using Marqeta Widgets until the Synctera Reveal Card Widget is available.
Activate Card Migration
API Changes
| Marqeta (Old) | Synctera (New) |
|---|---|
GET /v0/cards/card_widget_url?widget_type=activate_card | POST /v1/cards/{card_id}/widget_token?widget_type=ACTIVATE |
Returns { url: "..." } | Returns { widget_token: "..." } |
Code Changes
Before (Marqeta):Backend Changes
Before (Marqeta):Set PIN Migration
API Changes
| Marqeta (Old) | Synctera (New) |
|---|---|
GET /v0/cards/card_widget_url?widget_type=set_pin | POST /v1/cards/{card_id}/widget_token?widget_type=SET_PIN |
Returns { url: "..." } | Returns { widget_token: "..." } |
Code Changes
Before (Marqeta):Backend Changes
Before (Marqeta):Key Differences
Event Handling
Marqeta widgets used postMessage or URL callbacks. Synctera widgets dispatch standard DOM events:Customization
Marqeta widgets had limited customization. Synctera widgets support themes and custom labels:Token Expiration
Both widget types use tokens that expire. Generate a new token on each page load:Migration Checklist
- Update backend API calls from
/v0/cards/card_widget_urlto/v1/cards/{card_id}/widget_token - Change HTTP method from
GETtoPOSTfor token endpoint - Add widget script to your HTML (
<script type="module" src="...">) - Replace
<iframe>elements with web components (<activate-card>or<set-pin>) - Update event handling to use DOM event listeners
- Test in sandbox environment before deploying to production
- (Optional) Add custom theming and labels

