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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java

Issue 2640743005: PaymentApp: Implement invokePaymentApp for Android (Closed)
Patch Set: Fix a compile error Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
index 090bbe0db25b4e8cc1170691dfbbdaf8920f2155..45079f61dda13b0f22bd8335f66f07991ce9045f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
@@ -7,6 +7,7 @@ package org.chromium.chrome.browser.payments;
import android.graphics.drawable.Drawable;
import org.chromium.chrome.browser.payments.ui.PaymentOption;
+import org.chromium.payments.mojom.PaymentDetailsModifier;
import org.chromium.payments.mojom.PaymentItem;
import org.chromium.payments.mojom.PaymentMethodData;
@@ -74,15 +75,17 @@ public abstract class PaymentInstrument extends PaymentOption {
*
* @param merchantName The name of the merchant.
* @param origin The origin of this merchant.
- * @param total The total amount.
- * @param items The shopping cart items.
* @param methodDataMap The payment-method specific data for all applicable payment methods,
* e.g., whether the app should be invoked in test or production, a
* merchant identifier, or a public key.
+ * @param total The total amount.
+ * @param displayItems The shopping cart items.
+ * @param modifiers The relevant payment details modifiers.
* @param callback The object that will receive the instrument details.
*/
- public abstract void invokePaymentApp(String merchantName, String origin, PaymentItem total,
- List<PaymentItem> cart, Map<String, PaymentMethodData> methodDataMap,
+ public abstract void invokePaymentApp(String merchantName, String origin,
+ Map<String, PaymentMethodData> methodDataMap, PaymentItem total,
+ List<PaymentItem> displayItems, Map<String, PaymentDetailsModifier> modifiers,
InstrumentDetailsCallback callback);
/**

Powered by Google App Engine
This is Rietveld 408576698