PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry and, billing & shipping information and completes the missing details.
This article is dedicated to walking you through how to use the helper functions:
Cancel current payment:
This method gives you the ability to cancel or close the payment screen. However, if the merchant has already pressed the PAY NOW button and started the payment process; this method will not cancel the transaction.
//not affect the ongoing transactions.
The function returns a boolean, true if the payment screen is closed or false if the payment is ongoing and can't be closed.
Clear saved cards:
The function returns a boolean, true if the saved cards are cleared.