vivaIsv.connectedAccounts to create a new connected account and retrieve existing connected-account details with ISV OAuth credentials.
Initialize the ISV client
clientId and clientSecret are your ISV-level OAuth 2.0 credentials. The connected-account methods use Bearer token authentication derived from these credentials.
Create a connected account
UsevivaIsv.connectedAccounts.create(options) to onboard a new merchant under your ISV account. The ISVCreateAccountOptions payload requires the merchant email and the return URL for the onboarding flow.
accountId. You will use it to retrieve account data and to track onboarding progress.
Retrieve a connected account
Retrieve connected merchant account details by account ID withgetAccountDatas(options):
merchantId is the merchant identifier you use in other ISV flows, such as creating payment orders or targeting Basic Auth methods through targetMerchantId.
Connected account webhooks
VivaWallet sends webhook events when the status of a connected account changes. The SDK exportsConnectedAccountWebhookEventDatas to type these payloads in your webhook handler:
To receive connected-account webhook events, configure the webhook URL in your VivaWallet ISV dashboard or create it through
vivaIsv.webhook.create(). The SDK exposes both vivaIsv.webhook and vivaIsv.webhooks as aliases for the same module.