diff --git a/pr/apps/icon-sizes/icon-128-test/app.js b/pr/apps/icon-sizes/icon-128-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-128-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-128-test/confirm.html b/pr/apps/icon-sizes/icon-128-test/confirm.html deleted file mode 100644 index ff24bb5d..00000000 --- a/pr/apps/icon-sizes/icon-128-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - 128p icon - - -

This is a test app with a 128p icon declared

- - diff --git a/pr/apps/icon-sizes/icon-128-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-128-test/payment_method_manifest.json deleted file mode 100644 index 38f9f696..00000000 --- a/pr/apps/icon-sizes/icon-128-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-128-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-128-test/web_manifest.json b/pr/apps/icon-sizes/icon-128-test/web_manifest.json deleted file mode 100644 index 58cf2a79..00000000 --- a/pr/apps/icon-sizes/icon-128-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - 128p Icon", - "name": "Test App - 128p Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_128.png", - "sizes": "128x128", - "type": "image/png" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-24-test/app.js b/pr/apps/icon-sizes/icon-24-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-24-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-24-test/confirm.html b/pr/apps/icon-sizes/icon-24-test/confirm.html deleted file mode 100644 index 675025a1..00000000 --- a/pr/apps/icon-sizes/icon-24-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - 24p icon - - -

This is a test app with a 24p icon declared

- - diff --git a/pr/apps/icon-sizes/icon-24-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-24-test/payment_method_manifest.json deleted file mode 100644 index 41c68d3e..00000000 --- a/pr/apps/icon-sizes/icon-24-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-24-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-24-test/web_manifest.json b/pr/apps/icon-sizes/icon-24-test/web_manifest.json deleted file mode 100644 index e5237318..00000000 --- a/pr/apps/icon-sizes/icon-24-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - 24p Icon", - "name": "Test App - 24p Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_24.png", - "sizes": "24x24", - "type": "image/png" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-256-test/app.js b/pr/apps/icon-sizes/icon-256-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-256-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-256-test/confirm.html b/pr/apps/icon-sizes/icon-256-test/confirm.html deleted file mode 100644 index e602435c..00000000 --- a/pr/apps/icon-sizes/icon-256-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - 256p icon - - -

This is a test app with a 256p icon declared

- - diff --git a/pr/apps/icon-sizes/icon-256-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-256-test/payment_method_manifest.json deleted file mode 100644 index 7c74c1d5..00000000 --- a/pr/apps/icon-sizes/icon-256-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-256-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-256-test/web_manifest.json b/pr/apps/icon-sizes/icon-256-test/web_manifest.json deleted file mode 100644 index 5132065d..00000000 --- a/pr/apps/icon-sizes/icon-256-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - 256p Icon", - "name": "Test App - 256p Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_256.png", - "sizes": "256x256", - "type": "image/png" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-32-test/app.js b/pr/apps/icon-sizes/icon-32-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-32-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-32-test/confirm.html b/pr/apps/icon-sizes/icon-32-test/confirm.html deleted file mode 100644 index 80d0b615..00000000 --- a/pr/apps/icon-sizes/icon-32-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - 32p icon - - -

This is a test app with a 32p icon declared

- - diff --git a/pr/apps/icon-sizes/icon-32-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-32-test/payment_method_manifest.json deleted file mode 100644 index 5d29c028..00000000 --- a/pr/apps/icon-sizes/icon-32-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-32-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-32-test/web_manifest.json b/pr/apps/icon-sizes/icon-32-test/web_manifest.json deleted file mode 100644 index f3efb70f..00000000 --- a/pr/apps/icon-sizes/icon-32-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - 32p Icon", - "name": "Test App - 32p Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_32.png", - "sizes": "32x32", - "type": "image/png" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-64-test/app.js b/pr/apps/icon-sizes/icon-64-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-64-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-64-test/confirm.html b/pr/apps/icon-sizes/icon-64-test/confirm.html deleted file mode 100644 index 5515d508..00000000 --- a/pr/apps/icon-sizes/icon-64-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - 64p icon - - -

This is a test app with a 64p icon declared

- - diff --git a/pr/apps/icon-sizes/icon-64-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-64-test/payment_method_manifest.json deleted file mode 100644 index 5b2fc65e..00000000 --- a/pr/apps/icon-sizes/icon-64-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-64-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-64-test/web_manifest.json b/pr/apps/icon-sizes/icon-64-test/web_manifest.json deleted file mode 100644 index d4d64843..00000000 --- a/pr/apps/icon-sizes/icon-64-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - 64p Icon", - "name": "Test App - 64p Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_64.png", - "sizes": "64x64", - "type": "image/png" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-all-sizes-test/app.js b/pr/apps/icon-sizes/icon-all-sizes-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-all-sizes-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-all-sizes-test/confirm.html b/pr/apps/icon-sizes/icon-all-sizes-test/confirm.html deleted file mode 100644 index a92fedb9..00000000 --- a/pr/apps/icon-sizes/icon-all-sizes-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - all icon sizes - - -

This is a test app that declares multiple icon sizes

- - diff --git a/pr/apps/icon-sizes/icon-all-sizes-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-all-sizes-test/payment_method_manifest.json deleted file mode 100644 index a797e6a3..00000000 --- a/pr/apps/icon-sizes/icon-all-sizes-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-all-sizes-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-all-sizes-test/web_manifest.json b/pr/apps/icon-sizes/icon-all-sizes-test/web_manifest.json deleted file mode 100644 index 89b65df0..00000000 --- a/pr/apps/icon-sizes/icon-all-sizes-test/web_manifest.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "short_name": "Test App - All Sizes of Icon", - "name": "Test App - All Sizes of Icon", - "icons": [{ - "src": "https://www.gstatic.com/instantbuy/icons/gpay_24.png", - "sizes": "24x24", - "type": "image/png" - }, - { - "src": "https://www.gstatic.com/instantbuy/icons/gpay_32.png", - "sizes": "32x32", - "type": "image/png" - }, - { - "src": "https://www.gstatic.com/instantbuy/icons/gpay_64.png", - "sizes": "64x64", - "type": "image/png" - }, - { - "src": "https://www.gstatic.com/instantbuy/icons/gpay_128.png", - "sizes": "128x128", - "type": "image/png" - }, - { - "src": "https://www.gstatic.com/instantbuy/icons/gpay_256.png", - "sizes": "256x256", - "type": "image/png" - } - ], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/apps/icon-sizes/icon-svg-test/app.js b/pr/apps/icon-sizes/icon-svg-test/app.js deleted file mode 100644 index d597b552..00000000 --- a/pr/apps/icon-sizes/icon-svg-test/app.js +++ /dev/null @@ -1,10 +0,0 @@ -self.addEventListener('canmakepayment', (evt) => { - evt.respondWith(true); -}); - -self.addEventListener('paymentrequest', (evt) => { - evt.respondWith(new Promise((resolve) => { - self.resolver = resolve; - evt.openWindow('confirm.html'); - })); -}); diff --git a/pr/apps/icon-sizes/icon-svg-test/confirm.html b/pr/apps/icon-sizes/icon-svg-test/confirm.html deleted file mode 100644 index 14a1828a..00000000 --- a/pr/apps/icon-sizes/icon-svg-test/confirm.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Test App - SVG icon - - -

This is a test app with a SVG icon declared

- - diff --git a/pr/apps/icon-sizes/icon-svg-test/payment_method_manifest.json b/pr/apps/icon-sizes/icon-svg-test/payment_method_manifest.json deleted file mode 100644 index dbd55b5e..00000000 --- a/pr/apps/icon-sizes/icon-svg-test/payment_method_manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default_applications": ["https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-svg-test/web_manifest.json"], - "supported_origins": ["https://rsolomakhin.github.io"] -} diff --git a/pr/apps/icon-sizes/icon-svg-test/tree.svg b/pr/apps/icon-sizes/icon-svg-test/tree.svg deleted file mode 100644 index 6ab9da97..00000000 --- a/pr/apps/icon-sizes/icon-svg-test/tree.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr/apps/icon-sizes/icon-svg-test/web_manifest.json b/pr/apps/icon-sizes/icon-svg-test/web_manifest.json deleted file mode 100644 index 9ab4c9c3..00000000 --- a/pr/apps/icon-sizes/icon-svg-test/web_manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "short_name": "Test App - SVG Icon", - "name": "Test App - SVG Icon", - "icons": [{ - "src": "https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-svg-test/tree.svg", - "sizes": "32x32", - "type": "image/svg+xml" - }], - "serviceworker": { - "src": "app.js" - } -} diff --git a/pr/ph-icon-size/pr.js b/pr/ph-icon-size/pr.js index 29f5a0f4..c85d8ac8 100644 --- a/pr/ph-icon-size/pr.js +++ b/pr/ph-icon-size/pr.js @@ -8,7 +8,7 @@ function buildPaymentRequest(size) { } const supportedInstruments = [{ - supportedMethods: `https://rsolomakhin.github.io/pr/apps/icon-sizes/icon-${size}-test/payment_method_manifest.json` + supportedMethods: `https://payment-handler-demos.glitch.me/apps/icon_sizes/icon_${size}/payment_method_manifest.json` }]; const details = {