Embed Bitcoin/Lightning or Stablecoin backed Visa cards in record time, within your application
The "hosted cards" feature allows you to get up and running in as short a timeframe as possible, utilizing Striga's pre-approved Visa card program, featuring our generic unbranded card.
The feature is designed to be a drag and drop integration into your existing Striga integration, in a manner where the user is primarily authenticating with your application and authenticating with Striga through a TOTP that is setup through your user interface.
Each card must be linked to a funding source however and your application can determine which funding source currencies are allowed for this feature by using the "Set Allowed Wallet Currencies" API. Only the DEFAULT "Wallet" object (Remember, a wallet is a collection of accounts, one in each currency, on Striga) is used as a possible funding source selector within the hosted cards application.
To place hosted cards inside your application, you need to do the following -
- Setup user MFA within your application
- (Optional) - Set a list of allowed currencies that the card can be linked to (Default: All currencies that Striga supports. Currently BTC, ETH, USDT, USDC, BNB and POL).
- Retrieve a
sessionId
by starting a hosted card session
A hosted card session is valid for 30 minutes by default after which a new session ID should be created to initialize the widget, using a sessionId
,userId
, applicationId
and uiSecret
For example, the URL inside your iframe would be as follows: https://cards-sandbox.striga.com?sessionId={sessionId}&userId={userId}&applicationId={applicationId}&uiSecret={uiSecret}
Environment | URL |
---|---|
Sandbox | https://cards-sandbox.striga.com/ |
Production | Upon Request |
NOTE: When the session expires, the iframe will trigger an event to notify the parent window. To handle this event, add an event listener for the session-expired event
as follows:
window.addEventListener('message', function(event) {
if (event.data && event.data.event === 'session-expired') {
alert(event.data.message);
}
});
Sample Event:
{
event: 'session-expired',
message: 'Session expired. Please generate a new sessionId.'
}
Striga is responsible for providing these card services and hence, the lifecycle of card display, card management etc. is handled inside the widget as per Visa's requirements.
Hosted cards can be added to Google Pay, Samsung Pay, Fitbit Pay and Garmin Pay by default. If you would like to enable Apple Pay please discuss this with your account manager during onboarding (or contact us on [email protected])
Hosted Cards on Production
Please note that on the production environment, the admin panel will contain basic card information but you will not be able to make admin actions on user cards as this is managed by Striga. Moreover, the card APIs will not be accessible using the standard API key methods until your own Visa card program is approved.
On the sandbox, by default all applications have access to card APIs and the hosted card widget.