Cancel Payment

If the user taps the Cancel button in the dialog on the tablet, the cancelPayment() function is called. This requires that the following function be implemented in your payment module:

moduleName.cancelPayment = function() {
    // handle cancel

This function should cancel the transaction on the payment device. For example, if the device is waiting for a card to be swiped, you would call the device’s API to terminate that process.

Related Links

Create a Payment Module

Load the Native Module

Accept Payment

Approve Payment

Cancel Server Transaction

Handle Errors

Support Manual Card Number Entry

Support Payment with Gift Cards

Display Whether the Payment Device Is Connected

Configure Device in Admin Dashboard

Support Barcode Scanner

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.