| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* global PaymentRequest:false */ | 7 /* global PaymentRequest:false */ |
| 8 /* global print:false */ | 8 /* global print:false */ |
| 9 | 9 |
| 10 var first; | 10 var first; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 new PaymentRequest( | 84 new PaymentRequest( |
| 85 [{supportedMethods: ['https://alicepay.com']}], | 85 [{supportedMethods: ['https://alicepay.com']}], |
| 86 {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}}) | 86 {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}}) |
| 87 .canMakePayment() | 87 .canMakePayment() |
| 88 .then(function(result) { printSecond(result); }) | 88 .then(function(result) { printSecond(result); }) |
| 89 .catch(function(error) { printSecond(error); }); | 89 .catch(function(error) { printSecond(error); }); |
| 90 } catch (error) { | 90 } catch (error) { |
| 91 printSecond(error); | 91 printSecond(error); |
| 92 } | 92 } |
| 93 } | 93 } |
| OLD | NEW |