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

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

Issue 2562743002: 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 aa80ffdb902518f6c06ab14bc5e44cd5c98fd57f..cb71c8ab5fa8a6b39707656799df99da4e401419 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
@@ -100,6 +100,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