Last transaction not completed yet
Closed this issue · 2 comments
philsnook commented
How can we programmatically clear the previous transaction? I get the message 'Last transaction not completed yet' when calling:
mPOSHandler.openPaymentActivity(
pos.this /*activity*/,
REQUEST_CODE_MAKE_PAYMENT /*requestCode*/,
"10.50" /*amount*/,
UUID.randomUUID().toString()/*transaction reference*/
);
philsnook commented
The problem was caused by this event being fired twice..
I have now resolved the issue.
mPOSHandler.setConnectionListener(new ConnectionListener() {
@Override
public void onConnected(final BluetoothDevice device) {
``
AndreTaxiDigital commented
I checked my code I the setConnectionListener is just called once but I always receive "Last transaction not completed yet". Any help?