Summary: | Payment Request API - PaymentDetailsUpdate requires "total" | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | nickgzzjr | ||||||
Component: | New Bugs | Assignee: | Devin Rousso <hi> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | aestes, hi, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | Safari 14 | ||||||||
Hardware: | Mac (Intel) | ||||||||
OS: | macOS 10.15 | ||||||||
Attachments: |
|
Description
nickgzzjr
2021-01-12 13:32:36 PST
Created attachment 417741 [details]
Patch
Comment on attachment 417741 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417741&action=review > LayoutTests/http/tests/paymentrequest/updateWith-error.https.html:33 > +const applePay = { > + supportedMethods: "https://apple.com/apple-pay", > + data: { > + version: 2, > + merchantIdentifier: '', > + merchantCapabilities: ['supports3DS'], > + supportedNetworks: ['visa', 'masterCard'], > + countryCode: 'US', > + }, > +}; > +const validMethods = [applePay]; > +const validAmount = { > + currency: "USD", > + value: "5.00", > +}; > +const validTotal = { > + label: "label", > + amount: validAmount, > +}; > +const validDetails = { > + total: validTotal, > +}; You could use what's in `http/tests/paymentrequest/resources/helpers.js` for most/all of this. Created attachment 417745 [details]
Patch
Committed r271615: <https://trac.webkit.org/changeset/271615> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417745 [details]. |