{"action":"opened","issue":{"url":"https://api.github.com/repos/paypal/paypal-here-sdk-ios-distribution/issues/239","repository_url":"https://api.github.com/repos/paypal/paypal-here-sdk-ios-distribution","labels_url":"https://api.github.com/repos/paypal/paypal-here-sdk-ios-distribution/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/paypal/paypal-here-sdk-ios-distribution/issues/239/comments","events_url":"https://api.github.com/repos/paypal/paypal-here-sdk-ios-distribution/issues/239/events","html_url":"https://github.com/paypal/paypal-here-sdk-ios-distribution/issues/239","id":332273919,"node_id":"MDU6SXNzdWUzMzIyNzM5MTk=","number":239,"title":"Paypal Here (M010) device stuck with $10.00 shown on screen, no payment icons, no response to buttons","user":{"login":"pnemere","id":10591046,"node_id":"MDQ6VXNlcjEwNTkxMDQ2","avatar_url":"https://avatars0.githubusercontent.com/u/10591046?v=4","gravatar_id":"","url":"https://api.github.com/users/pnemere","html_url":"https://github.com/pnemere","followers_url":"https://api.github.com/users/pnemere/followers","following_url":"https://api.github.com/users/pnemere/following{/other_user}","gists_url":"https://api.github.com/users/pnemere/gists{/gist_id}","starred_url":"https://api.github.com/users/pnemere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnemere/subscriptions","organizations_url":"https://api.github.com/users/pnemere/orgs","repos_url":"https://api.github.com/users/pnemere/repos","events_url":"https://api.github.com/users/pnemere/events{/privacy}","received_events_url":"https://api.github.com/users/pnemere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T06:57:37Z","updated_at":"2018-06-14T06:57:37Z","closed_at":null,"author_association":"NONE","body":"I was finally able to login with the new PayPalRetailSDKv2 and now I'm trying to process our first payment. I'm following SampleAppObjC from the SDK.\r\n\r\nMy device (M010) is connected using paypalDeviceManager connectToLastActiveReader and on the screen it shows\r\n```\r\nReady to accept\r\n    payments.\r\nPayPal 771\r\n```\r\n\r\nAfter this I begin a purchase, code calls:\r\n`[[PPRetailInvoice alloc] initWithCurrencyCode: @\"AUD\"]`\r\nfinally the transaction is created using\r\n`[PayPalRetailSDK.transactionManager createTransaction:invoice...]`\r\n\r\nAt this point the $ amount in the invoice is shown on the PayPal Here device:\r\n```\r\n\r\n    $10.00\r\n\r\n```\r\n\r\nThe code then begins the payment using:\r\n```\r\nPPRetailTransactionBeginOptions *options = [[PPRetailTransactionBeginOptions alloc] init];\r\n                options.showPromptInCardReader = YES;\r\n                options.showPromptInApp = YES;\r\n                options.preferredFormFactors = [NSArray new];\r\n                options.tippingOnReaderEnabled = NO;\r\n                options.amountBasedTipping = NO;\r\n                options.isAuthCapture = false;\r\n\r\n                [self.tc beginPayment:options];\r\n```\r\n\r\nAfter this point nothing happens! The device does not show the chip/touch/swipe icons, and pressing any button on the device does nothing.\r\nThe iPad screen doesn't show any new dialogs (like it does when the last device needs to be chosen, etc).\r\n\r\nNo callbacks have been called either, I have the following registered with breakpoints in each:\r\n\r\n`[self.tc setCompletedHandler:`\r\n`[self.tc setCardPresentedHandler:`\r\n`-(UINavigationController *)getCurrentNavigationController`\r\n(As my view controller calls `[PayPalRetailSDK setRetailSDKAppDelegate:self];` on init)\r\n\r\nHere are the relevant logs that get printed around the time the device displays the $10.00:\r\n\r\n```\r\n2018-06-14 16:44:31.479 Fifty50[2866:2483978] DEBUG: [transactionContext.invoiceSynchronizer] Starting invoice sync on PayPal 771 for invoice total 5. context.id: tx-5887703362386\r\n2018-06-14 16:44:31.482 Fifty50[2866:2483978] DEBUG: [transactionContext] Listener: tx-5887703362386 Added 'tx-listener-4854755923151' for 'invoiceDisplayFooterUpdated' tx-5887703362386. ListenerCount: 1\r\n2018-06-14 16:44:31.484 Fifty50[2866:2483978] DEBUG: [transactionContext] Listener: tx-5887703362386 Added 'tx-listener-4466118400450' for 'refundAmountEntered' tx-5887703362386. ListenerCount: 1\r\n2018-06-14 16:44:31.486 Fifty50[2866:2483978] DEBUG: [transactionContext.invoiceSynchronizer] push syncInvoice: true\r\n2018-06-14 16:44:31.490 Fifty50[2866:2483978] DEBUG: [transactionContext.invoiceSynchronizer] InvoiceSync display for invoice total 5. context.id: tx-5887703362386\r\n2018-06-14 16:44:31.493 Fifty50[2866:2483978] DEBUG: [paymentDevice.displayController] Will push 2:InvoiceTotal to PayPal 771 as last pushed command 1:ReadyWithId was lower in priority\r\n2018-06-14 16:44:31.494 Fifty50[2866:2483978] DEBUG: [miura.terminal] Displaying: '\r\n\r\n        $10.00' icons: false\r\n2018-06-14 16:44:31.495 Fifty50[2866:2483978] DEBUG: [miura.writer] Queueing 'displayMessage(13)' ApduCommand class 0xd2, instruction 0x1, P1 0x0, P2 0x80\r\n15 bytes: 0a0a202020202020202024352e3030\r\n2018-06-14 16:44:31.496 Fifty50[2866:2483978] DEBUG: [miura.writer] Sending data part. Total length: 25. Offset: 0. Length to send: 25. Remaining parts: 1\r\n2018-06-14 16:44:31.499 Fifty50[2866:2483978] DEBUG: [transactionContext] CREATE transaction with Id tx-5887703362386 and invoice total: 5\r\n2018-06-14 16:45:34.657 Fifty50[2866:2483978] DEBUG: [miura.writer] Successfully sent message.\r\n2018-06-14 16:45:34.658 Fifty50[2866:2483978] DEBUG: [miura.writer] No suitable message to send\r\n2018-06-14 16:45:34.660 Fifty50[2866:2483978] DEBUG: [miura.parser] Emitting RESPONSIVE template <empty> SW1: 90 SW2: 0 Raw: 010002900093\r\n\r\n2018-06-14 16:45:34.676 Fifty50[2866:2483978] DEBUG: [miura.writer] Queueing 'getBatteryLevel(14)' ApduCommand class 0xd0, instruction 0x62, P1 0x0, P2 0x0\r\n2018-06-14 16:45:34.677 Fifty50[2866:2483978] DEBUG: [miura.writer] Sending data part. Total length: 9. Offset: 0. Length to send: 9. Remaining parts: 1\r\n2018-06-14 16:45:34.695 Fifty50[2866:2483978] DEBUG: [miura.writer] Remaining unhandled responses: 0. Remaining outstanding requests: 2.\r\n2018-06-14 16:45:34.696 Fifty50[2866:2483978] DEBUG: [miura.writer] Response will be handled by request 'displayMessage(13)'. Response template <empty> SW1: 90 SW2: 0 Raw: 010002900093. Remaining requests: 1\r\n2018-06-14 16:45:34.697 Fifty50[2866:2483978] DEBUG: [miura.writer] Successfully sent message.\r\n2018-06-14 16:45:34.698 Fifty50[2866:2483978] DEBUG: [miura.writer] No suitable message to send\r\n2018-06-14 16:45:35.468 Fifty50[2866:2483978] DEBUG: [miura.parser] Emitting RESPONSIVE template e1 SW1: 90 SW2: 0 Raw: 01000ee10adfa2090100dfa20a0146900031\r\n2018-06-14 16:45:35.469 Fifty50[2866:2483978] DEBUG: [miura.writer] Remaining unhandled responses: 0. Remaining outstanding requests: 1.\r\n2018-06-14 16:45:35.471 Fifty50[2866:2483978] DEBUG: [miura.terminal] getResponseCheck getBatteryLevel. This is a response with template 0xe1. Acceptable Templates = 225.tag[MiuraBatteryData]=true. Mine=true\r\n2018-06-14 16:45:35.471 Fifty50[2866:2483978] DEBUG: [miura.writer] Response will be handled by request 'getBatteryLevel(14)'. Response template e1 SW1: 90 SW2: 0 Raw: 01000ee10adfa2090100dfa20a0146900031. Remaining requests: 0\r\n2018-06-14 16:45:35.472 Fifty50[2866:2483978] DEBUG: [paymentDevice.miura] Received battery information Battery Info: Percentage: 70, isCharging: false, level: undefined, measuredOn: Thu Jun 14 2018 16:45:35 GMT+1000 (AEST)\r\n```\r\n\r\nAs you can see above it does say **\"Displaying $10.00\" with icons=false**. At this point I would expect the device to show icons for chip, contactless and swipe payments, but the ONLY thing seen on screen is $10.00 with no bluetooth icon, no power/battery icon, etc.\r\n\r\nAn example of what I'm expecting at this point is visible in the PayPal instructional video here, at 8:17\r\nhttps://vimeo.com/174764275\r\n\r\nPlease let me know if there's a step I missed or another function that needs to be called after beginPayment? I'm completely stuck.\r\n\r\nThanks!"}}
{"actor":{"display_login":"pnemere"}}