| Index: chrome/test/data/android/payments/contact_details.js
|
| diff --git a/chrome/test/data/android/payments/no_shipping.js b/chrome/test/data/android/payments/contact_details.js
|
| similarity index 79%
|
| copy from chrome/test/data/android/payments/no_shipping.js
|
| copy to chrome/test/data/android/payments/contact_details.js
|
| index 060a11b98a6d4445fdb16b52e7b2ff7ba800ad66..7f6ef19f22027a6614c72828ba146ff0eadf401c 100644
|
| --- a/chrome/test/data/android/payments/no_shipping.js
|
| +++ b/chrome/test/data/android/payments/contact_details.js
|
| @@ -7,19 +7,21 @@
|
| /* global PaymentRequest:false */
|
|
|
| /**
|
| - * Launches the PaymentRequest UI that does not require a shipping address.
|
| + * Launches the PaymentRequest UI that requests contact details.
|
| */
|
| 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, requestPayerPhone: true})
|
| .show()
|
| .then(function(resp) {
|
| - resp.complete("success")
|
| + resp.complete('success')
|
| .then(function() {
|
| print(
|
| JSON.stringify(resp.totalAmount, undefined, 2) + '<br>' +
|
| + resp.payerEmail + '<br>' + resp.payerPhone + '<br>' +
|
| resp.methodName + '<br>' +
|
| JSON.stringify(resp.details, undefined, 2));
|
| })
|
|
|