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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java

Issue 2507223002: Implement IsReadyToPay handling (Closed)
Patch Set: Use aidl Created 4 years, 1 month 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.payments; 5 package org.chromium.chrome.browser.payments;
6 6
7 import org.json.JSONObject; 7 import org.json.JSONObject;
8 8
9 import java.util.List; 9 import java.util.List;
10 import java.util.Map; 10 import java.util.Map;
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 /** 31 /**
32 * Provides a list of all payment instruments in this app. For example, this can be all credit 32 * Provides a list of all payment instruments in this app. For example, this can be all credit
33 * cards for the current profile. Can return null or empty list, e.g., if us er has no locally 33 * cards for the current profile. Can return null or empty list, e.g., if us er has no locally
34 * stored credit cards. 34 * stored credit cards.
35 * 35 *
36 * @param methodData The map from methods to method specific data. The data contains such 36 * @param methodData The map from methods to method specific data. The data contains such
37 * information as whether the app should be invoked in tes t or production 37 * information as whether the app should be invoked in tes t or production
38 * mode, merchant identifier, or a public key. 38 * mode, merchant identifier, or a public key.
39 * @param origin The origin of this merchant.
39 * @param callback The object that will receive the list of instruments. 40 * @param callback The object that will receive the list of instruments.
40 */ 41 */
41 void getInstruments(Map<String, JSONObject> methodData, InstrumentsCallback callback); 42 void getInstruments(Map<String, JSONObject> methodData,
43 String origin, InstrumentsCallback callback);
42 44
43 /** 45 /**
44 * Returns a list of all payment method names that this app supports. For ex ample, ["visa", 46 * Returns a list of all payment method names that this app supports. For ex ample, ["visa",
45 * "mastercard"] in basic card payments. Should return a list of at least on e method name. 47 * "mastercard"] in basic card payments. Should return a list of at least on e method name.
46 * https://w3c.github.io/browser-payment-api/specs/basic-card-payment.html#m ethod-id 48 * https://w3c.github.io/browser-payment-api/specs/basic-card-payment.html#m ethod-id
47 * 49 *
48 * @return The list of all payment method names that this app supports. 50 * @return The list of all payment method names that this app supports.
49 */ 51 */
50 Set<String> getAppMethodNames(); 52 Set<String> getAppMethodNames();
51 53
52 /** 54 /**
53 * Returns the identifier for this payment app to be saved in user preferenc es. For example, 55 * Returns the identifier for this payment app to be saved in user preferenc es. For example,
54 * this can be "autofill", "https://android.com/pay", or "com.example.app.Ex amplePaymentApp". 56 * this can be "autofill", "https://android.com/pay", or "com.example.app.Ex amplePaymentApp".
55 * 57 *
56 * @return The identifier for this payment app. 58 * @return The identifier for this payment app.
57 */ 59 */
58 String getAppIdentifier(); 60 String getAppIdentifier();
59 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698