Home | History | Annotate | Download | only in commits
      1 
      2 {
      3   "sha": "c36fc23688a9ec9e264d3182905dc0151bfff7d7",
      4   "commit": {
      5     "author": {
      6       "name": "Joe Marini",
      7       "email": "cjmarini68 (a] gmail.com",
      8       "date": "2013-09-10T22:50:43Z"
      9     },
     10     "committer": {
     11       "name": "Joe Marini",
     12       "email": "cjmarini68 (a] gmail.com",
     13       "date": "2013-09-10T22:50:43Z"
     14     },
     15     "message": "Merge pull request #132 from mkruisselbrink/iap_rename\n\nbetter name and icon for the iap sample app and some other small changes",
     16     "tree": {
     17       "sha": "7becb9f554dec76bd0fc12c1d32dbaff1d134a4d",
     18       "url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/git/trees/7becb9f554dec76bd0fc12c1d32dbaff1d134a4d"
     19     },
     20     "url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/git/commits/c36fc23688a9ec9e264d3182905dc0151bfff7d7",
     21     "comment_count": 0
     22   },
     23   "url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/commits/c36fc23688a9ec9e264d3182905dc0151bfff7d7",
     24   "html_url": "https://github.com/GoogleChrome/chrome-app-samples/commit/c36fc23688a9ec9e264d3182905dc0151bfff7d7",
     25   "comments_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/commits/c36fc23688a9ec9e264d3182905dc0151bfff7d7/comments",
     26   "author": {
     27     "login": "joemarini",
     28     "id": 822311,
     29     "avatar_url": "https://0.gravatar.com/avatar/356b7ae5766c8fcb1616d424db2a1d7d?d=https%3A%2F%2Fidenticons.github.com%2F67f1227ca40874a1251069ae602f19ae.png",
     30     "gravatar_id": "356b7ae5766c8fcb1616d424db2a1d7d",
     31     "url": "https://api.github.com/users/joemarini",
     32     "html_url": "https://github.com/joemarini",
     33     "followers_url": "https://api.github.com/users/joemarini/followers",
     34     "following_url": "https://api.github.com/users/joemarini/following{/other_user}",
     35     "gists_url": "https://api.github.com/users/joemarini/gists{/gist_id}",
     36     "starred_url": "https://api.github.com/users/joemarini/starred{/owner}{/repo}",
     37     "subscriptions_url": "https://api.github.com/users/joemarini/subscriptions",
     38     "organizations_url": "https://api.github.com/users/joemarini/orgs",
     39     "repos_url": "https://api.github.com/users/joemarini/repos",
     40     "events_url": "https://api.github.com/users/joemarini/events{/privacy}",
     41     "received_events_url": "https://api.github.com/users/joemarini/received_events",
     42     "type": "User"
     43   },
     44   "committer": {
     45     "login": "joemarini",
     46     "id": 822311,
     47     "avatar_url": "https://0.gravatar.com/avatar/356b7ae5766c8fcb1616d424db2a1d7d?d=https%3A%2F%2Fidenticons.github.com%2F67f1227ca40874a1251069ae602f19ae.png",
     48     "gravatar_id": "356b7ae5766c8fcb1616d424db2a1d7d",
     49     "url": "https://api.github.com/users/joemarini",
     50     "html_url": "https://github.com/joemarini",
     51     "followers_url": "https://api.github.com/users/joemarini/followers",
     52     "following_url": "https://api.github.com/users/joemarini/following{/other_user}",
     53     "gists_url": "https://api.github.com/users/joemarini/gists{/gist_id}",
     54     "starred_url": "https://api.github.com/users/joemarini/starred{/owner}{/repo}",
     55     "subscriptions_url": "https://api.github.com/users/joemarini/subscriptions",
     56     "organizations_url": "https://api.github.com/users/joemarini/orgs",
     57     "repos_url": "https://api.github.com/users/joemarini/repos",
     58     "events_url": "https://api.github.com/users/joemarini/events{/privacy}",
     59     "received_events_url": "https://api.github.com/users/joemarini/received_events",
     60     "type": "User"
     61   },
     62   "parents": [
     63     {
     64       "sha": "6bbb01a199e61d2c4b73551fdb28d5af84296306",
     65       "url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/commits/6bbb01a199e61d2c4b73551fdb28d5af84296306",
     66       "html_url": "https://github.com/GoogleChrome/chrome-app-samples/commit/6bbb01a199e61d2c4b73551fdb28d5af84296306"
     67     },
     68     {
     69       "sha": "072cecd67f7d27ea89bace03a09c23ca3eaec8d8",
     70       "url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/commits/072cecd67f7d27ea89bace03a09c23ca3eaec8d8",
     71       "html_url": "https://github.com/GoogleChrome/chrome-app-samples/commit/072cecd67f7d27ea89bace03a09c23ca3eaec8d8"
     72     }
     73   ],
     74   "stats": {
     75     "total": 34,
     76     "additions": 16,
     77     "deletions": 18
     78   },
     79   "files": [
     80     {
     81       "sha": "dc63fb1df16da42fc9a086210acee1bb8a99489d",
     82       "filename": "in-app-payments-with-server-validation/chromeapp/icon_128.png",
     83       "status": "modified",
     84       "additions": 0,
     85       "deletions": 0,
     86       "changes": 0,
     87       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/icon_128.png",
     88       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/icon_128.png",
     89       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments-with-server-validation/chromeapp/icon_128.png?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7"
     90     },
     91     {
     92       "sha": "b34f731580726ffe2aac1761773dc4a43c59cda7",
     93       "filename": "in-app-payments-with-server-validation/chromeapp/icon_16.png",
     94       "status": "modified",
     95       "additions": 0,
     96       "deletions": 0,
     97       "changes": 0,
     98       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/icon_16.png",
     99       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/icon_16.png",
    100       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments-with-server-validation/chromeapp/icon_16.png?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7"
    101     },
    102     {
    103       "sha": "01604afad7177ee7b74de52b08a375e8ee6b27d5",
    104       "filename": "in-app-payments-with-server-validation/chromeapp/manifest.json",
    105       "status": "modified",
    106       "additions": 1,
    107       "deletions": 1,
    108       "changes": 2,
    109       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/manifest.json",
    110       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments-with-server-validation/chromeapp/manifest.json",
    111       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments-with-server-validation/chromeapp/manifest.json?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7",
    112       "patch": "@@ -1,5 +1,5 @@\n {\n-  \"name\": \"Google Wallet Server Validation Sample\",\n+  \"name\": \"Chrome In-App Payments Server Validation Sample\",\n   \"description\": \"App to test CWA.\",\n   \"manifest_version\": 2,\n   \"version\": \"0.0.1\","
    113     },
    114     {
    115       "sha": "e3d8b65cb0f7a6cbcfe0271617117a4a9b083a52",
    116       "filename": "in-app-payments/README.md",
    117       "status": "modified",
    118       "additions": 1,
    119       "deletions": 1,
    120       "changes": 2,
    121       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/README.md",
    122       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/README.md",
    123       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments/README.md?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7",
    124       "patch": "@@ -1,6 +1,6 @@\n ## Overview of Chrome In App Payments API\n \n-You can use the Chrome In App Payments API (Chrome IAP API) to sell digital and virtual goods within a Chrome App. When you use the Chrome IAP API, the Chrome Wallet App (embedded in Chrome) communicates with the Google Wallet servers and handles all the required checkout details so your app does not have to process any financial transactions. The actual integration work to enable in app payments is similar to using the [Google Wallet digital goods API](https://developers.google.com/commerce/wallet/digital/docs/) for websites except that the Chrome IAP API requires you to embed a piece of JavaScript ([buy.js](https://raw.github.com/GoogleChrome/chrome-app-samples/master/in-app-payments/buy.js)) within your app to trigger the payment flow.\n+You can use the Chrome In-App Payments API (Chrome IAP API) to sell digital and virtual goods within a Chrome App. When you use the Chrome IAP API, the Chrome In-App Payments Service (embedded in Chrome) communicates with the Google Wallet servers and handles all the required checkout details so your app does not have to process any financial transactions. The actual integration work to enable in app payments is similar to using the [Google Wallet digital goods API](https://developers.google.com/commerce/wallet/digital/docs/) for websites except that the Chrome IAP API requires you to embed a piece of JavaScript ([buy.js](https://raw.github.com/GoogleChrome/chrome-app-samples/master/in-app-payments/buy.js)) within your app to trigger the payment flow.\n \n ## Sample app\n Heres a sample app that calls into the Chrome IAP API and provides options to trigger payments via the sandbox server as well as the production server:"
    125     },
    126     {
    127       "sha": "dc63fb1df16da42fc9a086210acee1bb8a99489d",
    128       "filename": "in-app-payments/icon_128.png",
    129       "status": "modified",
    130       "additions": 0,
    131       "deletions": 0,
    132       "changes": 0,
    133       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/icon_128.png",
    134       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/icon_128.png",
    135       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments/icon_128.png?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7"
    136     },
    137     {
    138       "sha": "b34f731580726ffe2aac1761773dc4a43c59cda7",
    139       "filename": "in-app-payments/icon_16.png",
    140       "status": "modified",
    141       "additions": 0,
    142       "deletions": 0,
    143       "changes": 0,
    144       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/icon_16.png",
    145       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/icon_16.png",
    146       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments/icon_16.png?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7"
    147     },
    148     {
    149       "sha": "6c87437d66ca6bd965c7101468b43f7c322596dc",
    150       "filename": "in-app-payments/main.js",
    151       "status": "modified",
    152       "additions": 11,
    153       "deletions": 13,
    154       "changes": 24,
    155       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/main.js",
    156       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/main.js",
    157       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments/main.js?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7",
    158       "patch": "@@ -40,19 +40,17 @@ document.getElementById('buyBtn').addEventListener('click', function() {\n document.getElementById('buyBtnProd').addEventListener('click', function() {\n   google.payments.inapp.buy({\n     parameters: {env: 'prod'},\n-    jwt: 'eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9' +\n-         '.eyJhdWQiOiAiR29vZ2xlIiwgImlzcyI6ICIwMjA' +\n-         '1NTA5MDM4OTY2NTMxMzk3MSIsICJyZXF1ZXN0Ijo' +\n-         'geyJwcmljZSI6ICIxLjk5IiwgImN1cnJlbmN5Q29' +\n-         'kZSI6ICJVU0QiLCAic2VsbGVyRGF0YSI6ICJfc2V' +\n-         'sbGVyX2RhdGFfIiwgIm5hbWUiOiAiU2FmZXR5bW9' +\n-         '1c2UgUGF0Y2giLCAiZGVzY3JpcHRpb24iOiAiVGh' +\n-         'lIHNhZmV0aWVzdCB3YXkgdG8gZGlzcGxheSB5b3V' +\n-         'yIGZsYWlyIn0sICJleHAiOiAyNDY1NjMyODU2LCA' +\n-         'iaWF0IjogMTM2NTYzMjg3NSwgInR5cCI6ICJnb29' +\n-         'nbGUvcGF5bWVudHMvaW5hcHAvaXRlbS92MSJ9.nG' +\n-         'U9n_DtjFTrTVWo20LcxVHhqh29fRh-BjICC9Vjma' +\n-         '8',\n+    jwt: 'eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIwMjA1NTA' +\n+         '5MDM4OTY2NTMxMzk3MSIsImF1ZCI6Ikdvb2dsZSI' +\n+         'sImlhdCI6MTM3ODgzNzI2MiwiZXhwIjoyMzc4ODM' +\n+         '3MjYyLCJ0eXAiOiJnb29nbGUvcGF5bWVudHMvaW5' +\n+         'hcHAvaXRlbS92MSIsInJlcXVlc3QiOnsibmFtZSI' +\n+         '6IlZpcnR1YWwgQmFjb24iLCJkZXNjcmlwdGlvbiI' +\n+         '6Ikp1c3Qgc29tZSB2aXJ0dWFsIGJhY29uLiIsInB' +\n+         'yaWNlIjoiNS4wMCIsImN1cnJlbmN5Q29kZSI6IlV' +\n+         'TRCIsInNlbGxlckRhdGEiOiJfc2VsbGVyX2RhdGF' +\n+         'fIn19.utZ0Gop538zuXoE4bXAfctWabBWvjOxHVv' +\n+         '89nUp/YrY=',\n     success: logSuccess,\n     failure: logFailure\n   });"
    159     },
    160     {
    161       "sha": "f0e4921d36ed5acd09ebe3117cf4fcfb2a282e4e",
    162       "filename": "in-app-payments/manifest.json",
    163       "status": "modified",
    164       "additions": 3,
    165       "deletions": 3,
    166       "changes": 6,
    167       "blob_url": "https://github.com/GoogleChrome/chrome-app-samples/blob/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/manifest.json",
    168       "raw_url": "https://github.com/GoogleChrome/chrome-app-samples/raw/c36fc23688a9ec9e264d3182905dc0151bfff7d7/in-app-payments/manifest.json",
    169       "contents_url": "https://api.github.com/repos/GoogleChrome/chrome-app-samples/contents/in-app-payments/manifest.json?ref=c36fc23688a9ec9e264d3182905dc0151bfff7d7",
    170       "patch": "@@ -1,8 +1,8 @@\n {\n-  \"name\": \"Google Wallet Sample\",\n-  \"description\": \"App to test CWA.\",\n+  \"name\": \"Chrome In-App Payments Sample\",\n+  \"description\": \"App to test Chrome In-App Payments.\",\n   \"manifest_version\": 2,\n-  \"version\": \"0.0.1\",\n+  \"version\": \"0.0.2\",\n   \"minimum_chrome_version\": \"29\",\n   \"app\": {\n     \"background\": {"
    171     }
    172   ]
    173 }
    174