Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/test/data/android/payments/active_payment_query.js

Issue 2545523004: Rename canMakeActivePayment to canMakePayment (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 /* global PaymentRequest:false */
8 /* global print:false */
9
10 /**
11 * Checks for existence of Bob Pay or a complete credit card.
12 */
13 function buy() { // eslint-disable-line no-unused-vars
14 try {
15 var request = new PaymentRequest(
16 [{supportedMethods: ['https://bobpay.com', 'visa']}],
17 {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
18 request.canMakeActivePayment()
19 .then(function(result) {
20 print(result);
21 })
22 .catch(function(error) {
23 print(error);
24 });
25 } catch (error) {
26 print(error.message);
27 }
28 }
OLDNEW
« no previous file with comments | « chrome/browser/payments/payment_request_impl.h ('k') | chrome/test/data/android/payments/active_payment_query_bobpay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698