{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/browser-payment-api/issues/50","repository_url":"https://api.github.com/repos/w3c/browser-payment-api","labels_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/50/comments","events_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/50/events","html_url":"https://github.com/w3c/browser-payment-api/issues/50","id":140558273,"number":50,"title":"How are payment requests and responses passed between the browser and third-party native wallets?","user":{"login":"msporny","id":108611,"avatar_url":"https://avatars.githubusercontent.com/u/108611?v=3","gravatar_id":"","url":"https://api.github.com/users/msporny","html_url":"https://github.com/msporny","followers_url":"https://api.github.com/users/msporny/followers","following_url":"https://api.github.com/users/msporny/following{/other_user}","gists_url":"https://api.github.com/users/msporny/gists{/gist_id}","starred_url":"https://api.github.com/users/msporny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msporny/subscriptions","organizations_url":"https://api.github.com/users/msporny/orgs","repos_url":"https://api.github.com/users/msporny/repos","events_url":"https://api.github.com/users/msporny/events{/privacy}","received_events_url":"https://api.github.com/users/msporny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/browser-payment-api/labels/Cat:%20Extensibility","name":"Cat: Extensibility","color":"1d76db"},{"url":"https://api.github.com/repos/w3c/browser-payment-api/labels/Doc:BrowserAPI","name":"Doc:BrowserAPI","color":"d4c5f9"},{"url":"https://api.github.com/repos/w3c/browser-payment-api/labels/Priority:%20Low","name":"Priority: Low","color":"c2e0c6"},{"url":"https://api.github.com/repos/w3c/browser-payment-api/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-14T02:22:54Z","updated_at":"2016-06-15T20:59:43Z","closed_at":"2016-06-15T20:59:43Z","body":"Migrating from https://github.com/w3c/webpayments/issues/42:\r\n\r\n@rsolomakhin sort of described it here:\r\n\r\nI think that native apps will connect through OS-specific means, like intents on Android. Here's how user agent code would look like on Android, I imagine:\r\n\r\n````java\r\nIntent intent = new Intent(\"org.w3.intent.action.PAY\", Uri.parse(\"https://bobpay.xyz\"));\r\nintent.putExtra(\"Details\", \"{\\\"price\\\": 5500, \\\"currency\\\": \\\"USD\\\", \\\"merchant\\\": \\\"superstore1\\\"}\");\r\nintent.putExtra(\"SchemeData\", \"{\\\"bobPaySpecificField\\\": \\\"foo\\\"}\");\r\nstartActivityForResult(intent, 0);\r\n````\r\n\r\nThe payment app should send back the result as a string (or HashMap) plus the result code. Like so:\r\n\r\n````java\r\nIntent result = new Intent(\"org.w3.intent.action.PAY\");\r\nresult.putExtra(\"InstrumentDetails\", \"{\\n\"\r\n        + \"  \\\"cardNumber\\\": \\\"4111111111111111\\\",\\n\"\r\n        + \"  \\\"nameOnCard\\\": \\\"Bob J. Paymentman\\\",\\n\"\r\n        + \"  \\\"expMonth\\\":   \\\"12\\\",\\n\"\r\n        + \"  \\\"expYear\\\":    \\\"2016\\\",\\n\"\r\n        + \"  \\\"cvv2\\\":       \\\"123\\\"\\n\"\r\n        +\"}\");\r\nsetResult(Activity.RESULT_OK, result);\r\nfinish();\r\n````\r\n\r\nHowever, the spec should give folks some idea of how the integration might happen via a NOTE or similar mechanism to ensure that people know it won't be just the OS vendors providing payment apps"},"comment":{"url":"https://api.github.com/repos/w3c/browser-payment-api/issues/comments/226318366","html_url":"https://github.com/w3c/browser-payment-api/issues/50#issuecomment-226318366","issue_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/50","id":226318366,"user":{"login":"adrianhopebailie","id":49902,"avatar_url":"https://avatars.githubusercontent.com/u/49902?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianhopebailie","html_url":"https://github.com/adrianhopebailie","followers_url":"https://api.github.com/users/adrianhopebailie/followers","following_url":"https://api.github.com/users/adrianhopebailie/following{/other_user}","gists_url":"https://api.github.com/users/adrianhopebailie/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianhopebailie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianhopebailie/subscriptions","organizations_url":"https://api.github.com/users/adrianhopebailie/orgs","repos_url":"https://api.github.com/users/adrianhopebailie/repos","events_url":"https://api.github.com/users/adrianhopebailie/events{/privacy}","received_events_url":"https://api.github.com/users/adrianhopebailie/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T20:59:43Z","updated_at":"2016-06-15T20:59:43Z","body":"Being addressed in the Payment Apps proposal at: https://w3c.github.io/webpayments/proposals/paymentapps/payment-apps.html"}}
{"actor":{"display_login":"adrianhopebailie"}}