| Index: chrome/test/data/android/payments/email.js
|
| diff --git a/chrome/test/data/android/payments/no_shipping.js b/chrome/test/data/android/payments/email.js
|
| similarity index 83%
|
| copy from chrome/test/data/android/payments/no_shipping.js
|
| copy to chrome/test/data/android/payments/email.js
|
| index fd8ec4781837abbeec174981d56d92d7f9deca34..9ac20d248eb884dfe2ab975b50d49e6ed184ecad 100644
|
| --- a/chrome/test/data/android/payments/no_shipping.js
|
| +++ b/chrome/test/data/android/payments/email.js
|
| @@ -6,21 +6,22 @@
|
|
|
| /* global PaymentRequest:false */
|
|
|
| -/**
|
| - * Launches the PaymentRequest UI that does not require a shipping address.
|
| +/*
|
| + * Launches the PaymentRequest UI that requests email address.
|
| */
|
| function buy() { // eslint-disable-line no-unused-vars
|
| try {
|
| new PaymentRequest(
|
| [{supportedMethods: ['visa']}],
|
| - {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}})
|
| + {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}},
|
| + {requestPayerEmail: true})
|
| .show()
|
| .then(function(resp) {
|
| resp.complete('success')
|
| .then(function() {
|
| print(
|
| JSON.stringify(resp.totalAmount, undefined, 2) + '<br>' +
|
| - resp.methodName + '<br>' +
|
| + resp.payerEmail + '<br>' + resp.methodName + '<br>' +
|
| JSON.stringify(resp.details, undefined, 2));
|
| })
|
| .catch(function(error) {
|
|
|