In your calling Activity, override the GetTransactionStatus method to receive a transaction status of the payment or refund transaction.

You can choose between transaction types: Purchase or Refund and to send the order ID of which transaction status needs to get checked.

The method will retrieve the transaction type, order ID, transaction status and the transaction reference:

IPCGetTransactionStatus ipcGetTransactionStatus = new IPCGetTransactionStatus();
ipcGetTransactionStatus.setOnCommandCompleteListener(new IPCGetTransactionStatus.OnCommandCompleteListener() {
    public void onCommandComplete(final int transactionStatus, final String  
                                                      transactionReference) {

    public void onError(final int status) {