Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
index ca53cbcf63dd9f831990019556b106b7a20b6b33..d367cf5bf445205d791fb6aedbb732845521a01b 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
@@ -295,6 +295,7 @@ public class PaymentRequestImpl |
*/ |
private SectionInformation mUiShippingOptions; |
+ private String mRequestId; |
private Map<String, PaymentMethodData> mMethodData; |
private boolean mRequestShipping; |
private boolean mRequestPayerName; |
@@ -757,6 +758,8 @@ public class PaymentRequestImpl |
} |
} |
+ mRequestId = details.id; |
+ |
updateInstrumentModifiedTotals(); |
return true; |
@@ -1167,7 +1170,7 @@ public class PaymentRequestImpl |
PaymentOption selectedContact = mContactSection != null ? mContactSection.getSelectedItem() |
: null; |
mPaymentResponseHelper = new PaymentResponseHelper( |
- selectedShippingAddress, selectedShippingOption, selectedContact, this); |
+ mRequestId, selectedShippingAddress, selectedShippingOption, selectedContact, this); |
// Create maps that are subsets of mMethodData and mModifiers, that contain |
// the payment methods supported by the selected payment instrument. If the |
@@ -1185,7 +1188,7 @@ public class PaymentRequestImpl |
} |
} |
- instrument.invokePaymentApp(mMerchantName, mSchemelessOriginForPaymentApp, |
+ instrument.invokePaymentApp(mRequestId, mMerchantName, mSchemelessOriginForPaymentApp, |
mSchemelessIFrameOriginForPaymentApp, mCertificateChain, |
Collections.unmodifiableMap(methodData), mRawTotal, mRawLineItems, |
Collections.unmodifiableMap(modifiers), this); |