Business Wallet
Getting Started
Manage payments to and from your business
Getting Started
Create a Business Wallet
-
Access the Developer Dashboard:
Visit the Handcash Developer Dashboard and log in with your developer credentials. -
Navigate to Wallets:
In the dashboard, go to the Wallets section. -
Create a New Wallet:
Click on the Create Wallet button and follow the prompts to set up your business wallet. Once 2fA is completed, save the walletAccessToken
to be used in the next steps.
Manage Payouts
Once your wallet is set up, you can manage payouts using the Handcash Connect SDK.
A common use case is for hourly payouts from the business wallet to the top of the leader board.
With your Access Token, you can integrate the Handcash Connect SDK to trigger user payouts.
import HandcashConnect from '@handcash/handcash-connect';
const handCashConnect = new HandcashConnect({
appId: 'YOUR_APP_ID',
appSecret: 'YOUR_APP_SECRET',
});
const account = handCashConnect.getAccountFromAuthToken('<accessToken>');
const payParameters = {
payments: [
{
destination: '<RECIPIENT_HANDLE | WALLET_ID>',
currencyCode: 'USD',
sendAmount: 0.10,
},
],
};
const paymentResult = await account.wallet.pay(payParameters);
console.log({ paymentResult });