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

Issue 1702223002: PaymentRequest API. (Closed)

Created:
4 years, 10 months ago by please use gerrit instead
Modified:
4 years, 9 months ago
CC:
blink-reviews, chromium-reviews, haavardm, zkoch1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentRequest API. An API that allows browsers to act as an intermediary between the three key parties in a financial transaction: the merchant (e.g. an online web store), the buyer (e.g. the user buying from the online web store), and the Payment Method (e.g. credit card). Information necessary to process and confirm a transaction is passed between the Payment Method and the merchant via the browser with the buyer confirming and authorizing as necessary across the flow. Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/gbSs15ZSWtA/JFU3H7fTDQAJ BUG=587995 Committed: https://crrev.com/c757fcfb1cd39e90b7e520572ec8dcb276ebb748 Cr-Commit-Position: refs/heads/master@{#378911}

Patch Set 1 #

Total comments: 1

Patch Set 2 #

Patch Set 3 #

Patch Set 4 #

Patch Set 5 #

Patch Set 6 #

Patch Set 7 #

Patch Set 8 #

Patch Set 9 #

Patch Set 10 #

Patch Set 11 #

Total comments: 16

Patch Set 12 : Address Marijn's comments. #

Patch Set 13 #

Patch Set 14 #

Patch Set 15 : Serialize ScriptValue. #

Patch Set 16 #

Patch Set 17 : Reduce the API surface #

Total comments: 6

Patch Set 18 : Let constructor throw an exception #

Total comments: 1

Patch Set 19 : Store JSON in strings. #

Total comments: 4

Patch Set 20 #

Total comments: 12

Patch Set 21 #

Total comments: 6

Patch Set 22 #

Total comments: 6

Patch Set 23 : Rebase and address comments. #

Patch Set 24 : Fix Windows linking. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -106 lines) Patch
A third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +24 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/v8.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTypeNames.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/EventTargetModulesFactory.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/CurrencyAmount.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentDetails.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentItem.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentOptions.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +79 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentRequest.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentResponse.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentResponse.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentResponse.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/ShippingAddress.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/ShippingAddress.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/ShippingOption.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
D third_party/WebKit/Source/platform/JSONValuesForV8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/WebKit/Source/platform/JSONValuesForV8.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -86 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (16 generated)
please use gerrit instead
Marjin, fyi I've started to put the proper pieces together for the API. I'm doing ...
4 years, 10 months ago (2016-02-16 23:30:03 UTC) #2
Marijn Kruisselbrink
https://codereview.chromium.org/1702223002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.h File third_party/WebKit/Source/modules/payments/PaymentRequest.h (right): https://codereview.chromium.org/1702223002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode24 third_party/WebKit/Source/modules/payments/PaymentRequest.h:24: static RawPtr<PaymentRequest> create(const Vector<String>&); No need to use RawPtr<Foo>. ...
4 years, 10 months ago (2016-02-17 01:33:21 UTC) #4
Marijn Kruisselbrink
On 2016/02/16 at 23:30:03, rouslan wrote: > Marjin, fyi I've started to put the proper ...
4 years, 10 months ago (2016-02-17 01:36:54 UTC) #5
please use gerrit instead
You're savior! On Tue, Feb 16, 2016 at 5:36 PM <mek@chromium.org> wrote: > > On ...
4 years, 10 months ago (2016-02-17 01:42:20 UTC) #6
please use gerrit instead
You're savior! On Tue, Feb 16, 2016 at 5:36 PM <mek@chromium.org> wrote: > > On ...
4 years, 10 months ago (2016-02-17 01:42:21 UTC) #7
Marijn Kruisselbrink
https://codereview.chromium.org/1702223002/diff/260001/third_party/WebKit/Source/modules/payments/CurrencyAmount.idl File third_party/WebKit/Source/modules/payments/CurrencyAmount.idl (right): https://codereview.chromium.org/1702223002/diff/260001/third_party/WebKit/Source/modules/payments/CurrencyAmount.idl#newcode9 third_party/WebKit/Source/modules/payments/CurrencyAmount.idl:9: GarbageCollected, I don't think [GarbageCollected] is necessary (or meaningful) ...
4 years, 10 months ago (2016-02-18 21:59:19 UTC) #11
please use gerrit instead
Marijn, I've addressed your comments in patch 12 and will be reaching out to bashi@ ...
4 years, 10 months ago (2016-02-18 22:41:33 UTC) #13
please use gerrit instead
Marijn, ptal patch 17. I've serialized the JSON object into a string for storage. That ...
4 years, 10 months ago (2016-02-19 20:36:13 UTC) #14
Marijn Kruisselbrink
Serializing the data sounds good indeed. That is similar to how Notification deals with storing ...
4 years, 10 months ago (2016-02-19 22:39:44 UTC) #15
Marijn Kruisselbrink
Actually thinking about this more, SerializedScriptValue is probably not what you want to use in ...
4 years, 10 months ago (2016-02-19 23:31:34 UTC) #16
please use gerrit instead
On 2016/02/19 23:31:34, Marijn Kruisselbrink wrote: > So you probably want to "just" directly serialize ...
4 years, 10 months ago (2016-02-19 23:36:05 UTC) #17
Marijn Kruisselbrink
On 2016/02/19 at 23:36:05, rouslan wrote: > On 2016/02/19 23:31:34, Marijn Kruisselbrink wrote: > > ...
4 years, 10 months ago (2016-02-20 00:15:23 UTC) #18
please use gerrit instead
https://codereview.chromium.org/1702223002/diff/400001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1702223002/diff/400001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode72 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:72: m_serializedData = SerializedScriptValueFactory::instance().create(v8::Isolate::GetCurrent(), data.v8Value(), nullptr, nullptr, nullptr, exceptionState)->toWireString(); Note ...
4 years, 10 months ago (2016-02-23 16:56:15 UTC) #19
please use gerrit instead
Marijn, ptal patch 18. I'm storing JSON objects in strings now. I don't think we ...
4 years, 10 months ago (2016-02-26 21:06:28 UTC) #20
Marijn Kruisselbrink
two small comments, but generally lgtm You might also want to add an OWNERS file ...
4 years, 10 months ago (2016-02-26 22:02:54 UTC) #21
please use gerrit instead
jbroman@, owners ptal EventTypeNames.in and RuntimeEnabledFeatures.in in patch 20. https://codereview.chromium.org/1702223002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1702223002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode74 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:74: ...
4 years, 10 months ago (2016-02-27 00:43:46 UTC) #23
please use gerrit instead
haraken@, owners ptal EventTargetModulesFactory.in and modules/payments/ in patch 20.
4 years, 10 months ago (2016-02-27 00:47:24 UTC) #25
jbroman
EventTypeNames.in and RuntimeEnabledFeatures.in lgtm
4 years, 10 months ago (2016-02-27 05:11:34 UTC) #26
haraken
Would you add more explanations to the CL description? (A link to Intent-to-implement etc.) https://codereview.chromium.org/1702223002/diff/440001/third_party/WebKit/Source/modules/payments/PaymentRequest.h ...
4 years, 9 months ago (2016-02-27 15:38:55 UTC) #27
please use gerrit instead
haraken@, ptal patch 21. https://codereview.chromium.org/1702223002/diff/440001/third_party/WebKit/Source/modules/payments/PaymentRequest.h File third_party/WebKit/Source/modules/payments/PaymentRequest.h (right): https://codereview.chromium.org/1702223002/diff/440001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode27 third_party/WebKit/Source/modules/payments/PaymentRequest.h:27: class PaymentRequest final : public ...
4 years, 9 months ago (2016-02-29 19:20:19 UTC) #30
haraken
Mostly looks good. https://codereview.chromium.org/1702223002/diff/460001/third_party/WebKit/Source/modules/payments/PaymentRequest.h File third_party/WebKit/Source/modules/payments/PaymentRequest.h (right): https://codereview.chromium.org/1702223002/diff/460001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode27 third_party/WebKit/Source/modules/payments/PaymentRequest.h:27: class PaymentRequest final : public RefCountedGarbageCollectedEventTargetWithInlineData<PaymentRequest>, ...
4 years, 9 months ago (2016-03-01 02:33:47 UTC) #31
please use gerrit instead
haraken@, ptal patch 22. https://codereview.chromium.org/1702223002/diff/460001/third_party/WebKit/Source/modules/payments/PaymentRequest.h File third_party/WebKit/Source/modules/payments/PaymentRequest.h (right): https://codereview.chromium.org/1702223002/diff/460001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode27 third_party/WebKit/Source/modules/payments/PaymentRequest.h:27: class PaymentRequest final : public ...
4 years, 9 months ago (2016-03-02 00:32:53 UTC) #32
haraken
LGTM https://codereview.chromium.org/1702223002/diff/480001/third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp File third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp (right): https://codereview.chromium.org/1702223002/diff/480001/third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp#newcode89 third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp:89: v8::Local<v8::Value> fromJSONString(v8::Local<v8::Context> context, const String& stringifiedJSON, ExceptionState& exceptionState) ...
4 years, 9 months ago (2016-03-02 00:46:16 UTC) #33
please use gerrit instead
Sending to CQ. https://codereview.chromium.org/1702223002/diff/480001/third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp File third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp (right): https://codereview.chromium.org/1702223002/diff/480001/third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp#newcode89 third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp:89: v8::Local<v8::Value> fromJSONString(v8::Local<v8::Context> context, const String& stringifiedJSON, ...
4 years, 9 months ago (2016-03-02 01:24:34 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1702223002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1702223002/500001
4 years, 9 months ago (2016-03-02 01:26:10 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/153668)
4 years, 9 months ago (2016-03-02 02:40:25 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1702223002/520001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1702223002/520001
4 years, 9 months ago (2016-03-02 22:57:09 UTC) #42
commit-bot: I haz the power
Committed patchset #24 (id:520001)
4 years, 9 months ago (2016-03-03 01:46:39 UTC) #43
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 01:48:21 UTC) #45
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/c757fcfb1cd39e90b7e520572ec8dcb276ebb748
Cr-Commit-Position: refs/heads/master@{#378911}

Powered by Google App Engine
This is Rietveld 408576698