Hi,
I am trying to investigate the issue where on transaction completion payment confirmation screen is not coming up.
That started happening after SDK update.
I can see that transaction coming through and message to remove card from the reader but when card is removed, payment confirmation (the screen from the image A) will not appear and Reader would stuck with message amount paid (B). It feels like SDK cannot get TopViewController to Pop the view.
There is no handler of sort to monitor card being removed and transaction confirmation screen presented.
Can you guide me or point me in right direction what could be wrong with that?
Hi, I am trying to investigate the issue where on transaction completion payment confirmation screen is not coming up. That started happening after SDK update. I can see that transaction coming through and message to remove card from the reader but when card is removed, payment confirmation (the screen from the image A) will not appear and Reader would stuck with message amount paid (B). It feels like SDK cannot get TopViewController to Pop the view.
There is no handler of sort to monitor card being removed and transaction confirmation screen presented.
Can you guide me or point me in right direction what could be wrong with that?
a)(Screenshot from working version)
b)
logs are as follows: 2021-04-23 13:24:28.596 [1482:1046505] Payment OnStateChanged Initialised 2021-04-23 13:24:29.115 [1482:1046505] Timer | Start at 13:24:29.1149490 - SyncronisationViewController.OnMdtStatusChanged iStatusReceived =True 2021-04-23 13:24:29.115 [1482:1046505] Timer | Start at 13:24:29.1157210 - STATUS: : BUSY 2021-04-23 13:24:36.365 [1482:1046505] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25889_PortraitChoco_iPhone-Simple-Pad_Default 2021-04-23 13:24:39.477 [1482:1046505] Zones updated:None 2021-04-23 13:24:48.574 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "getBatteryLevel", "ordinal": 12 } 2021-04-23 13:24:49.504 [1482:1046505] Read Loop: 17, Length read: 18, HasMoreBytes: 0 2021-04-23 13:24:55.489 [1482:1046505] Zones updated:None 2021-04-23 13:24:55.917 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/secure-terminal-config/cal (310ms): 200 2021-04-23 13:25:07.589 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "displayMessage", "ordinal": 13 } 2021-04-23 13:25:07.607 [1482:1046505] INFO: [transactionContext.deviceController] ActivatingDevice { "contextId": "tx-1163057318172", "deviceId": "PayPal 423", "formFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry", "showPrompt": true } 2021-04-23 13:25:07.614 [1482:1046505] INFO: [transactionContext] ActivatedCRForInvoice { "deviceId": "PayPal 423", "currency": "GBP", "total": "1.01", "ff": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry", "showPromptInApp": true, "contextId": "tx-1163057318172" } 2021-04-23 13:25:07.630 [1482:1046505] Alert message 2021-04-23 13:25:14.220 [1482:1046505] Payment OnStateChanged InProgress 2021-04-23 13:25:14.227 [1482:1046505] ***** ProcessPayment Fare:100, InProgress: True, Total: 101 2021-04-23 13:25:14.293 [1482:1046505] Zones updated:None 2021-04-23 13:25:14.294 [1482:1046505] Read Loop: 18, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:14.296 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "registerForCardEvents", "ordinal": 14 } 2021-04-23 13:25:14.323 [1482:1046505] Read Loop: 19, Length read: 12, HasMoreBytes: 0 2021-04-23 13:25:14.328 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "registerForKeyboardEvents", "ordinal": 15 } 2021-04-23 13:25:14.372 [1482:1046505] Read Loop: 20, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:14.373 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "startNFCtx", "ordinal": 16 } 2021-04-23 13:25:17.829 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/secure-terminal-config/cal (337ms): 200 2021-04-23 13:25:27.507 [1482:1046505] Zones updated:Cars 2021-04-23 13:25:30.813 [1482:1046505] Read Loop: 21, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:30.818 [1482:1046505] ERROR: [miura.terminal] got this in error { "error": { "domain": "PaymentDevice", "code": "13", "message": "Contactless payment was aborted by card insert" }, "mine": { "domain": "PaymentDevice", "code": "13", "message": "Contactless payment was aborted by card insert" } } 2021-04-23 13:25:30.846 [1482:1046505] INFO: [transactionContext] errHandlerResponse { "error": { "domain": "PaymentDevice", "code": "13", "message": "Contactless payment was aborted by card insert" }, "ff": "EmvCertifiedContactless", "errorAction": null, "contextId": "tx-1163057318172" } 2021-04-23 13:25:30.928 [1482:1046505] Read Loop: 22, Length read: 32, HasMoreBytes: 0 2021-04-23 13:25:30.940 [1482:1046505] TRACK: [tx.cardPresentedHandler] ReceivedCardPresentEvent { "subType": "insertDetected", "ff": "Chip", "context": { "contextId": "tx-1163057318172", "type": 0, "currency": "GBP", "total": "1.01", "state": { "paymentState": "idle", "tippingState": "notStarted", "endState": "notInvoked", "connectedDevices": 1, "selectedDevice": "PayPal 423", "activeFormFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry" } } } 2021-04-23 13:25:30.946 [1482:1046505] Alert message 2021-04-23 13:25:30.954 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "displayMessage", "ordinal": 17 } 2021-04-23 13:25:30.997 [1482:1046505] Read Loop: 23, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:30.999 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "startChipTx", "ordinal": 18 } 2021-04-23 13:25:32.882 [1482:1046505] Read Loop: 24, Length read: 27, HasMoreBytes: 0 2021-04-23 13:25:32.884 [1482:1046505] TRACK: [tx.cardPresentedHandler] ReceivedCardPresentEvent { "subType": "pinEvent", "ff": "Chip", "context": { "contextId": "tx-1163057318172", "type": 0, "currency": "GBP", "total": "1.01", "state": { "paymentState": "idle", "tippingState": "notStarted", "endState": "notInvoked", "connectedDevices": 1, "selectedDevice": "PayPal 423", "activeFormFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry" } } } 2021-04-23 13:25:32.887 [1482:1046505] Alert message 2021-04-23 13:25:38.824 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/secure-terminal-config/cal (313ms): 200 2021-04-23 13:25:43.522 [1482:1046505] Zones updated:None 2021-04-23 13:25:44.086 [1482:1046505] Read Loop: 25, Length read: 24, HasMoreBytes: 0 2021-04-23 13:25:44.091 [1482:1046505] TRACK: [tx.cardPresentedHandler] ReceivedCardPresentEvent { "subType": "pinEvent", "ff": "Chip", "context": { "contextId": "tx-1163057318172", "type": 0, "currency": "GBP", "total": "1.01", "state": { "paymentState": "idle", "tippingState": "notStarted", "endState": "notInvoked", "connectedDevices": 1, "selectedDevice": "PayPal 423", "activeFormFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry" } } } 2021-04-23 13:25:44.094 [1482:1046505] Read Loop: 26, Length read: 36, HasMoreBytes: 0 2021-04-23 13:25:44.108 [1482:1046505] TRACK: [tx.cardPresentedHandler] ReceivedCardPresentEvent { "subType": "pinEvent", "ff": "Chip", "context": { "contextId": "tx-1163057318172", "type": 0, "currency": "GBP", "total": "1.01", "state": { "paymentState": "idle", "tippingState": "notStarted", "endState": "notInvoked", "connectedDevices": 1, "selectedDevice": "PayPal 423", "activeFormFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry" } } } 2021-04-23 13:25:44.987 [1482:1046505] Read Loop: 27, Length read: 258, HasMoreBytes: 0 2021-04-23 13:25:44.989 [1482:1046505] Read Loop: 28, Length read: 81, HasMoreBytes: 0 2021-04-23 13:25:45.003 [1482:1046505] TRACK: [paymentDevice.miura.cardMetadataParser] EMV ResponseInfo { "tag82": "3900", "tag95": "0000008000", "tag9f06": "a0000000041010", "tag9b": "e800", "length": 331 } 2021-04-23 13:25:45.005 [1482:1046505] TRACK: [tx.cardPresentedHandler] ReceivedCardPresentEvent { "subType": "cardDataRead", "ff": "Chip", "context": { "contextId": "tx-1163057318172", "type": 0, "currency": "GBP", "total": "1.01", "state": { "paymentState": "idle", "tippingState": "notStarted", "endState": "notInvoked", "connectedDevices": 1, "selectedDevice": "PayPal 423", "activeFormFactors": "Chip,EmvCertifiedContactless,MagneticCardSwipe,SecureManualEntry" } } } 2021-04-23 13:25:45.026 [1482:1046505] Alert message 2021-04-23 13:25:45.029 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "displayMessage", "ordinal": 19 } 2021-04-23 13:25:45.097 [1482:1046505] Read Loop: 29, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:45.481 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/invoicing/invoices (379ms): 201 2021-04-23 13:25:45.521 [1482:1046505] TRACK: [sdkUtil] CardDataResponseInfo { "requestEmvHexLength": 650, "readerResponseLength": 331, "emvResponseInfo": { "tag82": "3900", "tag95": "0000008000", "tag9f06": "a0000000041010", "tag9b": "e800", "length": 331, "actionId": "message", "msgId": "1.38.38", "result": -1, "details": "EMV ResponseInfo", "logGroup": 1619180507536, "invoiceId": "", "component": "paymentDevice.miura.cardMetadataParser" }, "formFactor": 2 } 2021-04-23 13:25:48.447 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/checkouts (2912ms): 422 2021-04-23 13:25:48.449 [1482:1046505] ERROR: [paypalRest] Received error { "errMessage": "domain: retail, code: 580031, message: Please try another card, debugId: 5ed09a05adae0, details: " } 2021-04-23 13:25:48.452 [1482:1046505] ERROR: [sdkErrors] ResponseError [MTP] { "error": { "domain": "retail", "code": "580031", "message": "Please try another card", "developerMessage": "domain: retail, code: 580031, message: Please try another card, debugId: 5ed09a05adae0, details: ", "debugId": "5ed09a05adae0" }, "logResponse": { "headers": { "Content-Type": "application/json", "Date": "Fri, 23 Apr 2021 12:25:48 GMT", "paypal-debug-id": "5ed09a05adae0" }, "body": { "correlationId": "5ed09a05adae0", "errorType": "pay/bad_card", "txnHandle": "94U23310TK847584E", "message": "Please try another card", "developerMessage": "This credit card cannot be processed by PayPal", "authCode": "8A023531910AFF633772F3F1621C0012", "responseCode": "DECLINED", "errorCode": 580031 }, "statusCode": 422 } } 2021-04-23 13:25:48.468 [1482:1046505] ERROR: [sdkErrors] ApiError [MTP] { "error": { "domain": "retail", "code": "580031", "message": "Please try another card", "developerMessage": "This credit card cannot be processed by PayPal", "debugId": "5ed09a05adae0" }, "logResponse": { "headers": { "Content-Type": "application/json", "Date": "Fri, 23 Apr 2021 12:25:48 GMT", "paypal-debug-id": "5ed09a05adae0" }, "body": { "correlationId": "5ed09a05adae0", "errorType": "pay/bad_card", "txnHandle": "94U23310TK847584E", "message": "Please try another card", "developerMessage": "This credit card cannot be processed by PayPal", "authCode": "8A023531910AFF633772F3F1621C0012", "responseCode": "DECLINED", "errorCode": 580031 }, "statusCode": 422 } } 2021-04-23 13:25:48.483 [1482:1046505] ERROR: [flow.step.mtp] MTPErr { "currency": "GBP", "total": "1.01", "ff": 2, "isEmv": true, "err": "{\"domain\":\"retail\",\"code\":\"580031\",\"message\":\"Please try another card\",\"developerMessage\":\"This credit card cannot be processed by PayPal\",\"debugId\":\"5ed09a05adae0\"}", "status": 422, "resp": "{\"correlationId\":\"5ed09a05adae0\",\"errorType\":\"pay/bad_card\",\"txnHandle\":\"94U23310TK847584E\",\"message\":\"Please try another card\",\"developerMessage\":\"This credit card cannot be processed by PayPal\",\"authCode\":\"8A023531910AFF633772F3F1621C0012\",\"responseCode\":\"DECLINED\",\"errorCode\":580031}" } 2021-04-23 13:25:48.499 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "continueTx", "ordinal": 20 } 2021-04-23 13:25:49.085 [1482:1046505] Read Loop: 30, Length read: 258, HasMoreBytes: 0 2021-04-23 13:25:49.088 [1482:1046505] Read Loop: 31, Length read: 42, HasMoreBytes: 0 2021-04-23 13:25:49.093 [1482:1046505] ERROR: [flow.step.mtp] ErrRespOnPushingAuthCodeToTerminal { "id": "tx-1163057318172", "err": { "domain": "PaymentDevice", "code": "8", "message": "Payment was declined. Contact issuer" } } 2021-04-23 13:25:49.109 [1482:1046505] WARN: [flow.baseTransactionFlow] FlowAborted { "ff": "Chip", "domain": "retail", "err": { "domain": "retail", "code": "580031", "message": "Please try another card", "developerMessage": "This credit card cannot be processed by PayPal", "debugId": "5ed09a05adae0" }, "code": "580031" } 2021-04-23 13:25:49.126 [1482:1046505] Alert message 2021-04-23 13:25:49.132 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "displayMessage", "ordinal": 21 } 2021-04-23 13:25:49.179 [1482:1046505] Read Loop: 32, Length read: 6, HasMoreBytes: 0 2021-04-23 13:25:49.985 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/secure-terminal-config/cal (293ms): 200 2021-04-23 13:25:59.534 [1482:1046505] Zones updated:None 2021-04-23 13:26:04.855 [1482:1046505] Read Loop: 33, Length read: 12, HasMoreBytes: 0 2021-04-23 13:26:04.866 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "displayMessage", "ordinal": 22 } 2021-04-23 13:26:04.926 [1482:1046505] Read Loop: 34, Length read: 6, HasMoreBytes: 0 2021-04-23 13:26:04.929 [1482:1046505] INFO: [miura.writer] Miura Command { "name": "softReset", "ordinal": 23 } 2021-04-23 13:26:04.982 [1482:1046505] Read Loop: 35, Length read: 58, HasMoreBytes: 0 2021-04-23 13:26:04.994 [1482:1046505] TRACK: [receiptViewContent] ReceiptStatus { "message": "Payment Declined" } 2021-04-23 13:26:05.017 [1482:1046505] Inside SetInterval: 5000 2021-04-23 13:26:10.436 [1482:1046505] DEBUG: [paypalRest] POST https://api-m.paypal.com/v1/retail/secure-terminal-config/cal (265ms): 200