From 4aa6882fc19b099eb4b83ba4af03c5238cc16e1c Mon Sep 17 00:00:00 2001
From: Mathieu Perreault
Date: Tue, 17 Jul 2018 11:42:52 -0400
Subject: [PATCH] Move Android Pay sample to Google Pay
---
paymentrequest/{android-pay => google-pay}/demo.js | 12 ++++++------
.../{android-pay => google-pay}/index.html | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
rename paymentrequest/{android-pay => google-pay}/demo.js (89%)
rename paymentrequest/{android-pay => google-pay}/index.html (81%)
diff --git a/paymentrequest/android-pay/demo.js b/paymentrequest/google-pay/demo.js
similarity index 89%
rename from paymentrequest/android-pay/demo.js
rename to paymentrequest/google-pay/demo.js
index 81d604a..a30d09a 100644
--- a/paymentrequest/android-pay/demo.js
+++ b/paymentrequest/google-pay/demo.js
@@ -1,16 +1,16 @@
/**
- * Builds PaymentRequest for Android Pay, but does not show any UI yet. If you
+ * Builds PaymentRequest for Google Pay, but does not show any UI yet. If you
* encounter issues when running your own copy of this sample, run 'adb logcat |
- * grep Wallet' to see detailed error messages.
+ * grep Wallet' to see detailed error messages or watch Chrome DevTools console.
*
* @return {PaymentRequest} The PaymentRequest object.
*/
function initPaymentRequest() {
let supportedInstruments = [{
- supportedMethods: 'https://android.com/pay',
+ supportedMethods: 'https://google.com/pay',
data: {
- merchantName: 'Android Pay Demo',
- // Place your own Android Pay merchant ID here. The merchant ID is tied to
+ merchantName: 'Google Pay Demo',
+ // Place your own Google Pay merchant ID here. The merchant ID is tied to
// the origin of the website.
merchantId: '00184145120947117657',
// If you do not yet have a merchant ID, uncomment the following line.
@@ -47,7 +47,7 @@ function initPaymentRequest() {
}
/**
- * Invokes PaymentRequest for Android Pay.
+ * Invokes PaymentRequest for Google Pay.
*
* @param {PaymentRequest} request The PaymentRequest object.
*/
diff --git a/paymentrequest/android-pay/index.html b/paymentrequest/google-pay/index.html
similarity index 81%
rename from paymentrequest/android-pay/index.html
rename to paymentrequest/google-pay/index.html
index 1426977..50896d9 100644
--- a/paymentrequest/android-pay/index.html
+++ b/paymentrequest/google-pay/index.html
@@ -1,5 +1,5 @@
---
-feature_name: PaymentRequest Android Pay
+feature_name: PaymentRequest Google Pay
chrome_version: 53
feature_id: 5639348045217792
---
@@ -11,7 +11,7 @@ feature_id: 5639348045217792
- This sample accepts Android Pay payments and does not request shipping
+ This sample accepts Google Pay payments and does not request shipping
information.