Bug 178609

Summary: [Payment Request] Resolve PaymentRequest.show()'s accept promise when a payment is authorized
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, buildbot, cdumez, commit-queue, esprehn+autocc, kondapallykalyan, sam, thorton, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 174796    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Andy Estes 2017-10-20 16:52:41 PDT
[Payment Request] Resolve PaymentRequest.show()'s accept promise when a payment is authorized
Comment 1 Andy Estes 2017-10-20 17:00:38 PDT
Created attachment 324468 [details]
Patch
Comment 2 Build Bot 2017-10-20 17:03:07 PDT Comment hidden (obsolete)
Comment 3 Alex Christensen 2017-10-23 09:49:00 PDT
Comment on attachment 324468 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=324468&action=review

> Source/WebCore/Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp:287
> +    auto address = PaymentAddress::create();
> +    address->setCountry(contact.countryCode);

Could we make a constructor that takes these values so if we add one later we won't forget to add setters in all the necessary places?

> Source/WebCore/Modules/paymentrequest/PaymentAddress.h:38
> +    static Ref<PaymentAddress> create()

Yeah, let's add a meaningful constructor instead of a bunch of setters.
Comment 4 Andy Estes 2017-10-23 12:29:38 PDT Comment hidden (obsolete)
Comment 5 Andy Estes 2017-10-23 12:30:31 PDT
rdar://problem/33542813
Comment 6 WebKit Commit Bot 2017-10-23 12:33:14 PDT Comment hidden (obsolete)
Comment 7 Andy Estes 2017-10-23 13:24:11 PDT
Created attachment 324582 [details]
Patch
Comment 8 WebKit Commit Bot 2017-10-23 14:00:50 PDT
Comment on attachment 324582 [details]
Patch

Clearing flags on attachment: 324582

Committed r223855: <https://trac.webkit.org/changeset/223855>
Comment 9 WebKit Commit Bot 2017-10-23 14:00:52 PDT
All reviewed patches have been landed.  Closing bug.