AddCurrentCardToWallet()

This method adds the current Arcot card to the named wallet stored in the client machine. If the mentioned file is not present, a new one is created.
aa813test
This method adds the current Arcot card to the named wallet stored in the client machine. If the mentioned file is not present, a new one is created.
This is a deprecated function, use ImportArcotID() instead.
Syntax
boolean AddCurrentCardToWallet(
WalletName
)
Parameters
The following are the parameters of this method:
Parameter
Type
Description
WalletName
string
File name for the new wallet file (without the .wlt extension.)
Returns
If the method is successful, then it returns TRUE. If the method is unsuccessful, then it returns FALSE.
Example
var arcotClient = new ArcotClient();
var walletnameString = "GuestUser";
if (arcotClient.AddCurrentCardToWallet(walletnameString))
{
    document.write("<P>Card added to wallet successfully</P>");
}
else
{
    document.write("<P>Failed to add card to wallet</P>");
}