UNPKG

@nkhind/vivawallet-sdk

Version:
25 lines (24 loc) 1.22 kB
import { ISVCreateWebhookOptions, ISVGetWebhookKeyReturn } from "../types/isv.types/ISVWebhook.types"; import { MethodReturn } from "../types/Methods.types"; import { VivawalletISVInit } from "../types/Vivawallet.types"; import { VivaAuthISV } from "../vivabases/VivaAuth.class"; export default class IsvWebhook extends VivaAuthISV { constructor(datas: VivawalletISVInit); /** * Generate a webhook verification key to be used in the response of your webhook endpoints for verification purposes. */ getWebhookKey(): MethodReturn<ISVGetWebhookKeyReturn | null>; /** * Provide your webhook endpoint URL to set up webhooks for your [desired events](https://developer.viva.com/webhooks-for-payments/#webhook-events): * * - **1802** - Transaction POS Ecr Session Created * - **1803** - Transaction POS Ecr Session Failed * - **1796** - Transaction Payment Created * - **1797** - Transaction Reversal Created * - **1798** - Transaction Failed * - **1799** - Transaction Price Calculated * - **8193** - Account Connected * - **8194** - Account Verification Status Changed */ create(options: ISVCreateWebhookOptions): MethodReturn<null>; }