{"action":"created","issue":{"url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/68","repository_url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist","labels_url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/68/comments","events_url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/68/events","html_url":"https://github.com/PayPal-Mobile/android-here-sdk-dist/issues/68","id":158499201,"number":68,"title":"Updating Card Reader with two different connectToDevice methods FAILED","user":{"login":"mastahnish","id":11060323,"avatar_url":"https://avatars.githubusercontent.com/u/11060323?v=3","gravatar_id":"","url":"https://api.github.com/users/mastahnish","html_url":"https://github.com/mastahnish","followers_url":"https://api.github.com/users/mastahnish/followers","following_url":"https://api.github.com/users/mastahnish/following{/other_user}","gists_url":"https://api.github.com/users/mastahnish/gists{/gist_id}","starred_url":"https://api.github.com/users/mastahnish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastahnish/subscriptions","organizations_url":"https://api.github.com/users/mastahnish/orgs","repos_url":"https://api.github.com/users/mastahnish/repos","events_url":"https://api.github.com/users/mastahnish/events{/privacy}","received_events_url":"https://api.github.com/users/mastahnish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-04T10:44:00Z","updated_at":"2016-06-09T09:27:35Z","closed_at":null,"body":"Hello I'm using Here SDK Sample App for Android to get familiar with Card Reader usage flow.\r\n\r\nI'm from Poland.\r\nI'm using Sandbox (_I know it may be the reason but please read my description carefully till the end_).\r\n\r\nI tried two methods to connect to device:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/11060323/15799040/8759848e-2a4f-11e6-8eef-04bba0f0b6a0.png)\r\n\r\nwhen using this method to connect to device:\r\n```\r\nvoid connectToDevice(android.app.Activity activity,\r\n                     android.bluetooth.BluetoothDevice device  DefaultResponseHandler<android.bluetooth.BluetoothDevice,PPError<CardReaderManager.ChipAndPinConnectionStatus>> handler)\r\n```\r\nthe automatic update is started and it fails with message like this:\r\n\r\n`06-04 12:21:04.203 7749-8340/com.doddle.concession E/Volley: [16587] BasicNetwork.performRequest: Unexpected response code 500 for https://www.sandbox.paypal.com/webapps/hereapi/merchant/v1/cardReaderDevice/MIURA/M000/keys\r\n06-04 12:21:04.206 7749-7749/com.doddle.concession E/PPHSDK: HereDeviceKeysRequest- RESPONSE BODY ON ERROR: {\"correlationId\":\"c10716a49d238\",\"errorCode\":600000,\"message\":\"MobileMerchantPaymentServ: Unknown Error Code: 506713\",\"errorType\":\"service_error\"}\r\n06-04 12:21:04.206 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n06-04 12:21:04.207 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1\",\"type\":\"BIZ\",\"name\":\"Message.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:206 +0000\",\"actionId\":\"Message\",\"level\":\"ERROR\",\"result\":\"-1\",\"details\":\" : :  RESPONSE BODY ON ERROR: {\\\"correlationId\\\":\\\"c10716a49d238\\\",\\\"errorCode\\\":600000,\\\"message\\\":\\\"MobileMerchantPaymentServ: Unknown Error Code: 506713\\\",\\\"errorType\\\":\\\"service_error\\\"}\"}}\r\n06-04 12:21:04.225 7749-7749/com.doddle.concession E/PPHSDK: HereDeviceKeysRequest-Failure response from backend and contains errors. ErrorCode: 600000\r\n06-04 12:21:04.225 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n06-04 12:21:04.225 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1\",\"type\":\"BIZ\",\"name\":\"Message.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:225 +0000\",\"actionId\":\"Message\",\"level\":\"ERROR\",\"result\":\"-1\",\"details\":\" : : Failure response from backend and contains errors. ErrorCode: 600000\"}}\r\n06-04 12:21:04.238 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1\",\"type\":\"BIZ\",\"name\":\"HereDeviceKeysRequest.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:237 +0000\",\"actionId\":\"HereDeviceKeysRequest\",\"level\":\"INFO\",\"result\":\"-1\",\"details\":\"{\\\"initialKSN\\\":\\\"FFFFFF027CC85F200000\\\",\\\"signedKeyLoadingCert\\\":\\\"-----BEGIN CERTIFICATE-----\\\\nMIID+zCCAuOgAwIBAgIJAMP6zD+Uum6fMA0GCSqGSIb3DQEBCwUAMIGLMQswCQYD\\\\nVQQGEwJHQjEYMBYGA1UECBMPQnVja2luZ2hhbXNoaXJlMRUwEwYDVQQHEwxTdG9r\\\\nZW5jaHVyY2gxGjAYBgNVBAoTEU1pdXJhIFN5c3RlbXMgTHRkMREwDwYDVQQLEwhU\\\\nZXJtaW5hbDEcMBoGA1UEAxMTMDEwLTQzMzA0Ny10ZXJtaW5hbDAeFw0xMDAxMDEw\\\\nMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGQMQswCQYDVQQGEwJHQjEYMBYGA1UECBMP\\\\nQnVja2luZ2hhbXNoaXJlMRUwEwYDVQQHEwxTdG9rZW5jaHVyY2gxGjAYBgNVBAoT\\\\nEU1pdXJhIFN5c3RlbXMgTHRkMREwDwYDVQQLEwhUZXJtaW5hbDEhMB8GA1UEAxMY\\\\nMDEwLTQzMzA0Ny1sb2NhbC1rZXlsb2FkMIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0A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U3Rva2VuY2h1cmNoMRowGAYDVQQKExFNaXVyYSBTeXN0ZW1zIEx0ZDETMBEG\\\\nA1UECxMKUHJvZHVjdGlvbjE1MDMGA1UEAxQscHJvZC1zaWduL2\r\n06-04 12:21:04.250 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1.600000\",\"type\":\"BIZ\",\"name\":\"HereDeviceKeysRequest.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:249 +0000\",\"actionId\":\"HereDeviceKeysRequest\",\"level\":\"ERROR\",\"result\":\"-1\",\"correlationId\":\"c10716a49d238\",\"duration\":1784}}\r\n06-04 12:21:04.278 7749-7749/com.doddle.concession D/PPHSDK: CardReaderServiceImpl-HereDeviceKeysRequest response failure\r\n06-04 12:21:04.278 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n06-04 12:21:04.279 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"0\",\"type\":\"BIZ\",\"name\":\"Message.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:278 +0000\",\"actionId\":\"Message\",\"level\":\"INFO\",\"result\":\"0\",\"details\":\"SoftwareUpdate:  : invoke of exchangeEncryptionKeys. response: null\"}}\r\n06-04 12:21:04.293 7749-7749/com.doddle.concession D/PPHSDK: SoftwareUpdate:  : invoke of exchangeEncryptionKeys. response: null\r\n06-04 12:21:04.293 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n06-04 12:21:04.294 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1\",\"type\":\"BIZ\",\"name\":\"Message.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:294 +0000\",\"actionId\":\"Message\",\"level\":\"ERROR\",\"result\":\"-1\",\"details\":\"SoftwareUpdate:  : invoke of exchangeEncryptionKeys failed. Calling resetUpdater and failing update process\"}}\r\n06-04 12:21:04.304 7749-7749/com.doddle.concession E/PPHSDK: SoftwareUpdate:  : invoke of exchangeEncryptionKeys failed. Calling resetUpdater and failing update process\r\n06-04 12:21:04.304 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n06-04 12:21:04.304 7749-7749/com.doddle.concession D/PPHSDK: CalLoggingService-NEW MESSAGE: {\"status\":\"-1\",\"type\":\"BIZ\",\"name\":\"Message.CLIENT\",\"data\":{\"sessionId\":\"2623d764-2bf6-4314-b7cd-bd4502611656\",\"timestamp\":\"2016-06-04 10:21:04:304 +0000\",\"actionId\":\"Message\",\"level\":\"ERROR\",\"result\":\"-1\",\"details\":\"SoftwareUpdate:  : onUpdate Failed notifying the listener that update has been failed\"}}\r\n06-04 12:21:04.315 7749-7749/com.doddle.concession E/PPHSDK: SoftwareUpdate:  : onUpdate Failed notifying the listener that update has been failed\r\n06-04 12:21:04.315 7749-7749/com.doddle.concession E/PPHSDK: CardReaderManagerImpl SW_UPDATE-onInstallFailed!!!\r\n06-04 12:21:04.315 7749-7749/com.doddle.concession D/PPHSDK: PPHSDK.MerchantManagerImpl-Active merchant is present.\r\n`\r\n\r\nWhen I use this method to connect to device:\r\n`void connectToDevice(android.bluetooth.BluetoothDevice device,\r\n                     ChipAndPinStatusUpdateHandler<CardReaderManager.ChipAndPinStatusResponse,PPError<CardReaderManager.ChipAndPinConnectionStatus>> handler)`\r\n\r\nI'm getting into onCompleted method where `CardReaderManager.ChipAndPinStatusResponse response`  is null and `PPError<CardReaderManager.ChipAndPinConnectionStatus> error` gives such data:\r\n_**Interesting thing: when using this method there's no automatic update**._\r\n\r\n```\r\n       D/PayPalHereSDKWrapper: connectDevice Response Handler: **onInitiated**\r\n       D/PayPalHereSDKWrapper: errorMsg null\r\n       D/PayPalHereSDKWrapper: errorDevMsg null\r\n       D/PayPalHereSDKWrapper: errorCode ConnectionInProgress\r\n       D/PayPalHereSDKWrapper: detailerErrorCode null\r\n\r\n       D/PayPalHereSDKWrapper: connectDevice Response Handler: **onStatusUpdated**\r\n       D/PayPalHereSDKWrapper: errorMsg null\r\n       D/PayPalHereSDKWrapper: errorDevMsg null\r\n       D/PayPalHereSDKWrapper: errorCode TerminalInfoAvailable\r\n       D/PayPalHereSDKWrapper: detailerErrorCode null\r\n\r\n       D/PayPalHereSDKWrapper: connectDevice Response Handler: **onStatusUpdated**\r\n       D/PayPalHereSDKWrapper: errorMsg null\r\n       D/PayPalHereSDKWrapper: errorDevMsg null\r\n       D/PayPalHereSDKWrapper: errorCode ConnectedAndConfiguring\r\n       D/PayPalHereSDKWrapper: detailerErrorCode null\r\n\r\n       D/PayPalHereSDKWrapper: connectDevice Response Handler: **onCompleted**\r\n       D/PayPalHereSDKWrapper: errorMsg 0\r\n       D/PayPalHereSDKWrapper: errorDevMsg null\r\n       D/PayPalHereSDKWrapper: errorCode **ErrorSoftwareUpdateRequired**\r\n       D/PayPalHereSDKWrapper: detailerErrorCode null\r\n\r\n\r\n```\r\n\r\n\r\n\r\n**Questions:**\r\n1. Is is possible to update CardReader online without using official PayPal Here App and Live account?\r\nI would like to be able to plug the device to my pc and install update on it.\r\n2. Is the **Card Reader software update ** update the main reason of blocking me to connect to reader from app?"},"comment":{"url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/comments/224844477","html_url":"https://github.com/PayPal-Mobile/android-here-sdk-dist/issues/68#issuecomment-224844477","issue_url":"https://api.github.com/repos/PayPal-Mobile/android-here-sdk-dist/issues/68","id":224844477,"user":{"login":"mastahnish","id":11060323,"avatar_url":"https://avatars.githubusercontent.com/u/11060323?v=3","gravatar_id":"","url":"https://api.github.com/users/mastahnish","html_url":"https://github.com/mastahnish","followers_url":"https://api.github.com/users/mastahnish/followers","following_url":"https://api.github.com/users/mastahnish/following{/other_user}","gists_url":"https://api.github.com/users/mastahnish/gists{/gist_id}","starred_url":"https://api.github.com/users/mastahnish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastahnish/subscriptions","organizations_url":"https://api.github.com/users/mastahnish/orgs","repos_url":"https://api.github.com/users/mastahnish/repos","events_url":"https://api.github.com/users/mastahnish/events{/privacy}","received_events_url":"https://api.github.com/users/mastahnish/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T09:27:35Z","updated_at":"2016-06-09T09:27:35Z","body":"Thank you @ppmtscory that was correct. \r\nI faced another issue #71 when trying to perform transaction using SampleApp and PayPalHere CardReader. Maybe you could take a look on it as well. \r\n\r\nThank you for your help so far!"}}
{"actor":{"display_login":"mastahnish"}}