Cancel Server Transaction

If you upgrade to Release 1.14.1, you can call cancelServerTransaction, for example to ensure the transaction is canceled in the app or if the payment is approved, but there's a condition in the app that warrants canceling the transaction.

In JavaScript, the function looks like this:

moduleName.cancelServerTransaction = function(e) {
};

e should contain a property called "order_no".

In Objective-C, the function would look like:

-(void)cancelServerTransaction:(id)args {
}

args is an NSDictionary which contains an entry called "order_no".

Related Links

Create a Payment Module

Load the Native Module

Accept Payment

Approve Payment

Cancel Payment

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