Hi folks I am trying to setup the emulator but it won’t activate for me. I am using the built in Android Studio emulator. I’ve tried it with a couple of test merchants and test terminals. The activation screen prints Error Code SERVICE_UNAVAILABLE.
First of all can I ask a stupid question, is the MID that is required the one listed in the Merchant Information panel, or the Store MID in the Store panel of the test merchant dashboard? I’ve tried both but would like to be sure, I’m guessing it’s the Store MID as when you hit Activate that is what is displayed.
Here are some logs, thanks!
10-26 14:43:22.103 3190-3284/co.poynt.services D/CO.POYNT.SERVICES/TerminalActivationTask.java:46: AsyncTask #5 Activating terminal w/ storeDeviceId: urn:tid:598fce5d-749f-3520-b7bb-923f5886ed98 10-26 14:43:22.103 3190-3284/co.poynt.services D/CO.POYNT.SERVICES/PoyntBusinessProcessorImpl.java:379: AsyncTask #5 Sending Activation request. 10-26 14:43:22.103 3190-3284/co.poynt.services D/CO.POYNT.SERVICES/PoyntAuthProcessorImpl.java:164: AsyncTask #5 PublicKey (-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnp4EIx6txo3Ae/EE4bCc TfkUcM9ORf1HiOKJinlUiinXHB/GC7eoGqjFJpYUt6poVnCOE5+/m/kHGorxi4S5 3T9bf4YfW2A/JiVXYp5R3oT9R6D/K5qdLeM6cKWrE7E4BwgQhjzSJc/AxfqnCHZ2 MFTmelS/xDX043wpYHEZ+5l1h9cNwxcItYxZZsIMk5Lc6KtZ9dHktRsmZ5TqNduX kZp67gsaTX/M0Hyy10kv3LcPrT4T5Eqo/bl4S1GMWZUe3tcvosZVeOnMkAsI1t2k bwGWeMpDwUdylIkG2cgswGgrYZd0sOVUICrYvQ6EHFDi4nabbQfC0ju36JCyWM1B EQIDAQAB -----END PUBLIC KEY----- ) 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: ---> HTTP POST https://services.poynt.net/storeDevices/activate 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: POYNT-REQUEST-ID: 59233b81-015f-1000-c13a-bd253c79764b 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: api-version: 1.2 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: User-Agent: Poynt Services/1.0-DEV-d (Android 4.4.2; 4174703; urn:tid:01fd91de-28cd-3226-9408-260ee19b31d7; EMUvkr242ri9dg9l5mh3) 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: POYNT-SESSION-ID: 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: Content-Type: application/json; charset=UTF-8 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: Content-Length: 665 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: {"acquirer":"FIRST_DATA","device":{"deviceId":"urn:tid:cc9074c6-a81e-3452-87ce-e2920dc01cf8","externalTerminalId":"82ys","publicKey":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnp4EIx6txo3Ae/EE4bCc\nTfkUcM9ORf1HiOKJinlUiinXHB/GC7eoGqjFJpYUt6poVnCOE5+/m/kHGorxi4S5\n3T9bf4YfW2A/JiVXYp5R3oT9R6D/K5qdLeM6cKWrE7E4BwgQhjzSJc/AxfqnCHZ2\nMFTmelS/xDX043wpYHEZ+5l1h9cNwxcItYxZZsIMk5Lc6KtZ9dHktRsmZ5TqNduX\nkZp67gsaTX/M0Hyy10kv3LcPrT4T5Eqo/bl4S1GMWZUe3tcvosZVeOnMkAsI1t2k\nbwGWeMpDwUdylIkG2cgswGgrYZd0sOVUICrYvQ6EHFDi4nabbQfC0ju36JCyWM1B\nEQIDAQAB\n-----END PUBLIC KEY-----\n","serialNumber":"EMUnj93iouhe94k1cds8"},"externalStoreId":"nv04z137v"} 10-26 14:43:22.103 3190-3284/co.poynt.services D/CLOUD-API: ---> END HTTP (665-byte body) 10-26 14:43:22.873 3190-3284/co.poynt.services I/POYNT-EVENT: {"time" : "2017-10-26T14:43:22Z", "type" : "REST_API", "status" : "FAILURE", "storeDeviceId" : "urn:tid:05cbc5c6-61e0-3268-b6f1-a8ed648e2291", "processingTime" : 760.37898, "method" : "POST", "apiStatusCode" : 400, "apiRequestId" : "59233b81-015f-1000-c13a-bd253c79764b", "apiEndpoint" : "https://services.poynt.net/storeDevices/activate", "apiServerDate" : "Thu, 26 Oct 2017 14:43:24 GMT", "apiServerBuild" : "1.2.404-20171016-1701", "apiServerInstanceId" : "i-01d7ffafa94d27163"} 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: <--- HTTP 400 https://services.poynt.net/storeDevices/activate (762ms) 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Server: nginx 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Date: Thu, 26 Oct 2017 14:43:24 GMT 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Content-Type: application/json;charset=UTF-8 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Transfer-Encoding: chunked 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Connection: keep-alive 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Poynt-Request-Id: 59233b81-015f-1000-c13a-bd253c79764b 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Poynt-Build-Info: 1.2.404-20171016-1701 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Instance-Id: i-01d7ffafa94d27163 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: Poynt-Error-Code: INVALID_REQUEST 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: OkHttp-Selected-Protocol: http/1.1 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: OkHttp-Sent-Millis: 1509029002773 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: OkHttp-Received-Millis: 1509029002881 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: {"code":"INVALID_REQUEST","httpStatus":400,"message":"Bad request.","developerMessage":"Could not find acquirer MID/TID: FIRST_DATA nv04z137v/82ys","requestId":"59233b81-015f-1000-c13a-bd253c79764b"} 10-26 14:43:22.873 3190-3284/co.poynt.services D/CLOUD-API: <--- END HTTP (199-byte body) 10-26 14:43:22.873 3190-3284/co.poynt.services D/CO.POYNT.SERVICES/PoyntAPIException.java:43: AsyncTask #5 PoyntAPI Error received:400 Bad Request 10-26 14:43:22.873 3190-3284/co.poynt.services E/CO.POYNT.SERVICES/TerminalActivationTask.java:54: AsyncTask #5 Exception received while activating terminal:PoyntAPIException{HTTP statusCode=400 apiErrorCode=INVALID_REQUEST Network Error? false errorInfo=ErrorInfo [code=INVALID_REQUEST, httpStatus=400, message=Bad request., developerMessage=Could not find acquirer MID/TID: FIRST_DATA nv04z137v/82ys, moreInfo=null, requestId=59233b81-015f-1000-c13a-bd253c79764b]} 10-26 14:43:22.903 3145-3145/co.poynt.setupwizard E/null: PoyntError{code=5, httpStatusCode=0, apiErrorCode=null, reason='null', data='null', requestId='null', throwable=}
Edit:
Also of note is that of the 4 test devices I tried to create for 2 each over 2 test merchants, all except one lead to a 404 device not found error when I click on them. Doesn’t seem to be any way to delete them too.