Wallet balances

The Wallet balances component renders a customer’s current credit wallet balances. Use it when you want to show prepaid credit or balance state in your product.



Overview

Wallet balances is driven by a portalObject your backend generates for a specific customer. The SDK uses it to fetch and display that customer’s active wallets and their remaining balances. Your frontend never handles API keys directly.

This is a display-only component — it has no interactive actions.

Mount the component

Wallet balances component
import { createSolvimonCore } from '@solvimon/sdk/core';
// Generated by your backend via the Solvimon API.
const customerPortalObject = {
object_type: 'PORTAL_URL',
id: 'purl_example',
type: 'CUSTOMER_PORTAL',
customer_id: 'cust_example',
token: 'replace-with-a-real-portal-token',
status: 'PUBLISHED',
};
const solvimon = createSolvimonCore({
environment: 'TEST',
locale: 'en-US',
});
const unmount = solvimon.createComponent('wallet-balances', {
container: '#sdk-root',
portalObject: customerPortalObject,
});
window.addEventListener('beforeunload', () => {
unmount?.();
});