Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onPrepareQuickChipDataSuccessful not firing #67

Open
nathanoertel opened this issue Mar 26, 2021 · 5 comments
Open

onPrepareQuickChipDataSuccessful not firing #67

nathanoertel opened this issue Mar 26, 2021 · 5 comments

Comments

@nathanoertel
Copy link

I'm attempting to implement this without the UI according to the instructions. This is my code:

    val l = object : EMVTransactionManager.QuickChipTransactionSessionListener {
      override fun onReturnBluetoothDevices(bluetoothDeviceList: List<BluetoothDevice>) {
      }

      override fun onBluetoothDeviceConnected(bluetoothDevice: BluetoothDevice) {
      }

      override fun onBluetoothDeviceDisConnected() {
      }

      override fun onTransactionStatusUpdate(transactionStatus: String) {
        sendMessage("Transaction Status Update: ${transactionStatus}")
      }

      override fun onPrepareQuickChipDataSuccessful() {
        sendMessage("Chip data saved Successfully")
      }

      override fun onPrepareQuickChipDataError(error: EMVErrorCode, cause: String) {
        sendMessage("onPrepareQuickChipDataError")
        sendMessage(cause)
      }

      override fun onEMVTransactionSuccessful(result: net.authorize.aim.emv.Result) {
      }

      override fun onEMVReadError(emvError: EMVErrorCode) {
        if (emvError != null) {
          sendMessage("EMV Error: ${emvError.errorString}")
        } else sendMessage("EMV Error")
        promise.reject("EMV Read Error", emvError.errorString);
      }

      override fun onEMVTransactionError(result: net.authorize.aim.emv.Result, emvError: EMVErrorCode) {
        sendMessage("onEMVTransactionError")
      }
    }
    
    EMVTransactionManager.prepareDataForQuickChipTransaction(context, l)

I get the message Transaction Status Update: Waiting for device... from the onTransactionStatusUpdate event but never get anything from either onPrepareQuickChipDataSuccessful or onPrepareQuickChipDataError. I've inserted the card into the device and waited for an extended period of time.

I do not see this actually used in the sample app anywhere. Does this work and what might I be doing wrong?

@amimishr
Copy link
Contributor

@nathanoertel Which Android device you are using?

Could you try the sample app and see if you are able to connect to the reader. There is a possibility that it needs a configuration update .

@nathanoertel
Copy link
Author

@amimishr I've tried:

  • Samsung galaxy A8
  • Lenovo M10
  • Haoquin H10

I've checked the software on the chipper using the Auth.net app and the software on all chippers we have tried (2 BT and 1 audio) are up to date.

This operation doesn't work with the sample app or our integration of it on any device. I was told by Authorize.net's support that I was out of luck because I didn't use some mystery list of approved devices (they didn't include what that list was) and was told to switch to iOS.

@amimishr
Copy link
Contributor

@nathanoertel Using the sample app, could you try doing OTA update?

@nathanoertel
Copy link
Author

@amimishr that function doesn't work in any way.

  • Audio device: (yes, volume is at the max)
    • Get device info shows details
    • Checking for updates
    • Error: Reader timeout
    • Error: Cannot get target version: errorMessage: Device timeout
  • Bluetooth device:
    • Connected:
      • START BT SCAN
      • Choose device (Bluetooth device connected message shown)
      • Click OTAUpdate menu option
      • Error: Invalid function in current connection mode.
      • "Cannot start scan while bluetooth 2.0 is connected" message displayed
      • CHECK FOR UPDATES button has no response
    • Not connected:
      • Click OTAUpdate menu option
      • Info: Please connect reader
      • "Please connect reader" message displayed
      • CHECK FOR UPDATES button has no response

@MouaYing
Copy link

This also will not work for me. I'm using a BBPOS CHC2XBT Chipper 2X BT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants