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

Issue 2097713002: Specify billing address for autofill cards in PaymentRequest. (Closed)

Created:
4 years, 6 months ago by please use gerrit instead
Modified:
4 years, 6 months ago
Reviewers:
gone
CC:
chromium-reviews, rouslan+autofill_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Specify billing address for autofill cards in PaymentRequest. If a credit card has a billing address, then the billing address will also be passed to the merchant. The billing address specification redirects to the shipping address specification, so that's the format used in this patch. https://w3c.github.io/webpayments-methods-card/#billingaddress https://w3c.github.io/browser-payment-api/#paymentaddress-interface The credit card information is an "instrument detail" that's unique to each payment method. Therefore, it's passed through mojo as a JSON string. A credit card payment instrument detail now might look like this: { "cardholderName": "First Last", "cardNumber": "4111111111111111", "expiryMonth": "12", "expiryYear": "2020", "cardSecurityCode": "123", "billingAddress": { "country": "US", "region": "CA", "city": "Mountain View", "dependentLocality": "", "addressLine: [ "1600 Amphitheatre Pkwy" ], "postalCode": "94043", "sortingCode": "", "languageCode": "en-US", "organization": "Google", "recipient": "First Last", "careOf": "", "phone": "(650) 253-0000" } } Additional changes in this patch: - Add billing addresses to several integration tests, because the plan is to require billing addresses until merchants have a way to specify that they are optional. - Remove total amounts from several integration tests, because total amounts are no longer passed to merchants in response. BUG=602663 Committed: https://crrev.com/c498cd139a6791995261cd3ee3409a4caeb319f2 Cr-Commit-Position: refs/heads/master@{#401908}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -46 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java View 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 5 chunks +48 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestAbortTest.java View 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestDynamicShippingSingleAddressTest.java View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailTest.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteContactDetailsTest.java View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteEmailTest.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java View 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/test/data/android/payments/contact_details.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/android/payments/email.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/android/payments/phone.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
please use gerrit instead
dfalcantara@, ptal
4 years, 6 months ago (2016-06-24 02:36:21 UTC) #4
gone
lgtm https://codereview.chromium.org/2097713002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2097713002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:94: remove newline between } and json.endArray() to make ...
4 years, 6 months ago (2016-06-24 15:25:21 UTC) #5
please use gerrit instead
Sending to cq. https://codereview.chromium.org/2097713002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2097713002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:94: On 2016/06/24 15:25:21, dfalcantara wrote: > ...
4 years, 6 months ago (2016-06-24 16:56:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2097713002/30001
4 years, 6 months ago (2016-06-24 16:57:11 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:30001)
4 years, 6 months ago (2016-06-24 18:06:23 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 18:08:56 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c498cd139a6791995261cd3ee3409a4caeb319f2
Cr-Commit-Position: refs/heads/master@{#401908}

Powered by Google App Engine
This is Rietveld 408576698