Commit Graph

102 Commits

Author SHA1 Message Date
Matthew Noorenberghe
e7534fe294 Bug 1428472 - Default to the selected shipping address on the "add basic card" screen. r=jaws
MozReview-Commit-ID: Hx4AHqiTapn
2018-04-13 17:25:13 -07:00
Matthew Noorenberghe
09d5886015 Bug 1446179 - Update payments tests to use ES modules. r=jaws
MozReview-Commit-ID: 1cRK5xAEygF
2018-04-12 19:52:05 -07:00
Matthew Noorenberghe
2a59ce2336 Bug 1432952 - Send the basic-card's billing address with the response. r=jaws
MozReview-Commit-ID: 9tquQ0C7D91
2018-04-10 18:52:13 -07:00
Sam Foster
93737c32a0 Bug 1427958 - Check modified dates when determining if the shipping address has changed. r=MattN
* Compare address timeLastModified as well as the selectedShippingAddress guid when handling new state
* Add tests to ensure editing or removing the selected address record correctly updates the UI

MozReview-Commit-ID: InQDP55Fs2
2018-03-28 15:54:20 -07:00
Matthew Noorenberghe
613b490bec Bug 1428414 - Support saving credit card changes in the Payment Request dialog. r=jaws
MozReview-Commit-ID: J2rRUy1lHiZ
2018-04-03 14:06:21 -04:00
Matthew Noorenberghe
2ec11c65af Bug 1428414 - Removed cleared record attributes on card and address options. r=jaws
If a property gets cleared in autofill storage, that property is not defined on the object when retrieved which means it won't get updated.
Previously I thought that known fields were always returned and had a default value.

MozReview-Commit-ID: KnBrpFdOk8P
2018-03-22 23:01:32 -07:00
Matthew Noorenberghe
bb573fef78 Bug 1428414 - Use the autofill credit card form in the Payment dialog. r=jaws
MozReview-Commit-ID: 4BjUfETLv0X
2018-03-22 20:57:13 -07:00
Sam Foster
bd65a65911 Bug 1444240 - Filter address options to eliminate dupes based on fields to display. r=MattN
* Add an observed attribute to address-picker to render when address-fields is changed
* Add a filter step to address-picker, to exclude addresses that represent duplicates given the requested fields
* Filter out addresses that do not contain one or more of the requested fields
* Use a default set of fields to establish duplicates and meet the bar for adding an address as an option

MozReview-Commit-ID: 7lg4suNHv60
2018-03-09 11:49:21 -08:00
Dave Townsend
baa5890074 Bug 1421070: Always enable custom elements in chrome. r=smaug, rs=MattN
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.

MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07:00
Jared Wein
6b4640b579 Bug 1429213 - Implement the 'unknown' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: KHf0NtE2Kir
2018-03-20 18:38:28 -04:00
Kris Maglione
9d5b9190a5 Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc
2018-03-07 19:31:28 -08:00
Jonathan Guillotte-Blouin
59b158faff Bug 1442078 - Modify UI tests that were broken by the change to the "show" specs. r=MattN
MozReview-Commit-ID: 3KlcOOgarkW
2018-03-08 23:15:41 -05:00
Kris Maglione
c52d401bb4 Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT
2018-03-14 14:35:05 -07:00
Henri Sivonen
4948805cd0 Bug 1436903 - Avoid passing shipping options to the front end when shipping was not requested. r=baku
MozReview-Commit-ID: FdkC02izUy6
2018-03-07 13:16:46 +02:00
Sam Foster
4660395f33 Bug 1440499 - Implement the payerName/payerEmail/payerPhone contact picker. r=MattN
* Based on original patch by MattN
* Make stored contacts available as payer data (MattN)
* Add the address-picker element to the dialog for selecting payer details from stored contacts (MattN)
* Add a field-names attribute to the payer address-picker, populated from the request paymentOptions
* Basic CSS to selectively render address fields
* Add mochitests to verify paymentOptions result in the correct payment picker behavior

MozReview-Commit-ID: Br8i5MVyeQ3
2018-03-06 14:00:05 -08:00
Csoregi Natalia
0d80765e79 Backed out 2 changesets (bug 1440499) for ESlint failure on paymentDialogWrapper.js:53. CLOSED TREE
Backed out changeset 4e2e081dad55 (bug 1440499)
Backed out changeset 479b143d8828 (bug 1440499)
2018-03-09 02:46:15 +02:00
Sam Foster
27e6efd878 Bug 1440499 - Implement the payerName/payerEmail/payerPhone contact picker. r=MattN
* Based on original patch by MattN
* Make stored contacts available as payer data (MattN)
* Add the address-picker element to the dialog for selecting payer details from stored contacts (MattN)
* Add a field-names attribute to the payer address-picker, populated from the request paymentOptions
* Basic CSS to selectively render address fields
* Add mochitests to verify paymentOptions result in the correct payment picker behavior

MozReview-Commit-ID: Br8i5MVyeQ3
2018-03-06 14:00:05 -08:00
Cosmin Sabou
7e049a1cdd Backed out 2 changesets (bug 1429213) for mochitest browser chrome failures at browser_show_dialog.js on a CLOSED TREE
Backed out changeset 3f419c7dcf2a (bug 1429213)
Backed out changeset 752ad36df388 (bug 1429213)
2018-03-07 22:11:06 +02:00
Jared Wein
9b69abd2ad Bug 1429213 - Time out the payment dialog after the user clicks 'Pay', closing the dialog if response.complete() is not called. r=MattN
MozReview-Commit-ID: 8IswziomlHF
2018-02-28 14:57:54 -05:00
Jared Wein
0e07988c6a Bug 1429213 - Implement the 'unknown' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: KHf0NtE2Kir
2018-03-02 15:57:36 -05:00
Daniel Marshall
7724f2e32c Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I
2018-02-10 21:23:19 +00:00
Mark Banner
29e56bce9b Bug 1434869 - Automatically mark EXPORTED_SYMBOLS as used, so that we don't need to ignore it in ESLint's no-unused-vars rule. r=florian.
MozReview-Commit-ID: IVMeZHGdVBk
2018-03-06 12:01:59 +00:00
Narcis Beleuzu
439cc34017 Backed out changeset a8130e46c530 (bug 1434483) for ESlint failures on browser_change_shipping.js. CLOSED TREE 2018-03-05 23:50:02 +02:00
Daniel Marshall
49ad18cee3 Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I
2018-02-10 21:23:19 +00:00
Jared Wein
9b697fce4c Bug 1429207 - Implement the 'failure' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: JfsMQ8EwhqW
2018-02-27 22:09:34 -05:00
Jared Wein
0d778b577d Bug 1429211 - Implement the 'success' screen for when the merchant accepts the payment. r=MattN
MozReview-Commit-ID: 5AAKzKMqXVx
2018-02-27 21:07:45 -05:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Matthew Noorenberghe
237d8883c2 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: 8HfO8UN0stE
2018-02-26 22:03:26 -08:00
arthur.iakab
da4159b43e Backed out changeset 0ec115a54885 (bug 1440843) for failing browser chrome on toolkit/components/payments/test/browser/browser_change_shipping.js 2018-02-24 22:23:41 +02:00
Matthew Noorenberghe
7b37b2f420 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: Cu74O0Reu4L
2018-02-24 11:11:16 -08:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Jared Wein
866e108ca6 Bug 1435105 - Vary the payment request address label according to 'shippingType'. r=mattn
MozReview-Commit-ID: 6HiraY6BbKb
2018-02-22 21:36:03 -08:00
Jared Wein
04ea30531a Bug 1440530 - Move dialog setup code out to a helper function for the webpayments mochitest-browser tests. r=mattn
MozReview-Commit-ID: 9rpN1lIjOCG
2018-02-22 17:24:59 -08:00
Jared Wein
49ccd43f99 Bug 1429189 - Show shipping address errors on the summary screen. r=mattn
MozReview-Commit-ID: LaXrvWliWna
2018-02-21 14:16:35 -08:00
Matthew Noorenberghe
1aea57c147 Bug 1429205 - Implement the Payment Request processing screen. r=jaws
MozReview-Commit-ID: Kb4oRFV0SWA
2018-02-22 21:29:57 -08:00
Andreea Pavel
fafc6c1b06 Backed out 2 changesets (bug 1429205) for failing toolkit/components/payments/test/mochitest/test_payment_dialog.html on a CLOSED TREE
Backed out changeset 3f8c4cb7982f (bug 1429205)
Backed out changeset ced4c7041d8e (bug 1429205)
2018-02-23 02:45:53 +02:00
Matthew Noorenberghe
4093d0493f Bug 1429205 - Implement the Payment Request processing screen. r=jaws
MozReview-Commit-ID: 8MZAtjxRHEa
2018-02-22 15:19:52 -08:00
Jared Wein
55af4711a8 Bug 1435101 - Wrap some lines to under 100 characters to make eslint happy. r=MattN
MozReview-Commit-ID: 4gzdA7C5krr
2018-02-21 14:41:57 -08:00
Jared Wein
42cab7904a Bug 1435101 - Only show the shipping options and shipping address if requestShipping is true. r=MattN
MozReview-Commit-ID: 4PiQyHr3pDr
2018-02-21 11:21:29 -08:00
Jared Wein
f4a208ef06 Bug 1427947 - Dispatch shippingoptionchange when the shipping option is changed. r=MattN
MozReview-Commit-ID: J8U7ln90XnZ
2018-02-15 15:03:40 -05:00
Jared Wein
5ed4f86032 Bug 1437879 - Set the currency-amount properties as attributes on the shipping-option so they get copied to the cloned option. r=MattN
MozReview-Commit-ID: 9rngciIXPkX
2018-02-13 10:24:25 -05:00
Jared Wein
90f4ea5df9 Bug 1427945 - Implement a Payment Request Shipping Option Picker. r=MattN
MozReview-Commit-ID: H7jWR0um0Py
2018-02-06 11:37:34 -05:00
Sam Foster
b3ad4fc298 Bug 1434508 - better serialization of paymentrequest data. r=MattN
* Add a serializeRequest method to paymentDialogWrapper to correctly serialize the nsIArray values
* Test results of serializing a request with multiple displayItems, shippingOptions, paymentMethods and modifiers

MozReview-Commit-ID: DTqzTAjvdxq
2018-01-31 16:19:49 -08:00
Matthew Noorenberghe
1ed805d0a8 Bug 1429195 - Send the selected payment card to the wrapper and DOM. r=jaws
MozReview-Commit-ID: 8SqXrnvenGB
2018-02-08 13:23:23 -08:00
Matthew Noorenberghe
9828bc79ff Bug 1429195 - Implement and use a <payment-method-picker> custom element. r=jaws
MozReview-Commit-ID: 9Ag7debD4IB
2018-02-07 16:11:11 -08:00
Matthew Noorenberghe
c66f207b88 Bug 1429195 - Rename basic-card-option attribute names to match autofill storage. r=jaws
MozReview-Commit-ID: DFan7RJ6j8R
2018-02-06 17:10:58 -08:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Jared Wein
bb53368e11 Bug 1434443 - Send the shippingAddress back to the webpage as part of the PaymentResponse. r=MattN
MozReview-Commit-ID: 4K8XpxkgdqB
2018-01-31 16:17:15 -05:00
Matthew Noorenberghe
85bcaecbdd Bug 1434839 - Rename PaymentDialog to paymentDialogWrapper to reduce confusion. r=jaws
MozReview-Commit-ID: 6o8B7bHy9fo
2018-02-01 14:40:29 -08:00
Sam Foster
76f1d741dc Bug 1427936 - Add an order-details component and details-payment-items. r=MattN
* The order-details container arranges and populates the items list and the 2nd total line under the items.
* The displayItems list is rendered into 2 lists, a "footer-items" list which displays tax and similar items just before the total, and a "main" list for everything else.
* The list items are instances of a payment-details-item component
* Initial layout of the line items and total with css grid

* Tests for order-details component
* Tests for payment-detail-item component


MozReview-Commit-ID: 68r8SSgwHgq
2018-01-12 15:03:54 -08:00