VasAPI

Docs for VasAPI methods

1. vasNavigateToScreen

vasNavigateToScreen(navigationData: NavigateToPageParams): Promise<void> 

Navigates to Vas Page


Accepts NavigateToPageParams :

name : string : Name of the page

type : NavigationTypes [ROUTER] : Type of navigation

target : string : Target of the navigation ex:- route of page if type is ROUTER

appCode : string : Code of Vas service where navigation is happening

2. initiateFullOrPartialPayment

initiateFullOrPartialPayment(paymentParams: InitiateFullOrPartialPaymentParams): Promise<void>

Shows dialog to accept full or partial payment from customer then redirects to app payments screen.


Accepts InitiateFullOrPartialPaymentParams :

amount : string : Full amount to be paid by the customer

externalD : string : External ID for the payment

tableData : string : JSON string of tableData received from GraphQL API

fullText : string : Text to be shown in the full payment option in dialog

partialText : string : Text to be shown in the artial payment option in dialog

3. vasNavigateToPayment

vasNavigateToPayment(navigateToPaymentData: NavigateToPaymentParams): Promise<void>

Navigates to native apps payment screen.


Accepts NavigateToPaymentParams :

externalId : string : External ID of the data which is entered

Last updated

Copyright Mod91 2024