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

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

Issue 2561193002: [Merge M-56] Pass the full card number to merchant after unmask. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
index 6013fa5ec918f80fde423c2fec88b6ff3827ee20..00c6f5950231f49f46374efc6ceedea807fd6488 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
@@ -94,6 +94,10 @@ public class AutofillPaymentInstrument extends PaymentInstrument
// Keep the cvc for after the normalization.
mSecurityCode = cvc;
+ // The card number changes for unmasked cards.
+ assert updatedCard.getNumber().length() > 4;
+ mCard.setNumber(updatedCard.getNumber());
+
// Update the card's expiration date.
mCard.setMonth(updatedCard.getMonth());
mCard.setYear(updatedCard.getYear());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698