Commit Graph

26 Commits

Author SHA1 Message Date
Diego Pino Garcia
079a1050f5 Bug 1509147 - Rename payer and paymentMethod on nsIPaymentDetails to payerErrors and paymentMethodErrors respectively r=baku 2018-11-26 03:08:00 +02:00
Sam Foster
7328d3a035 Bug 1481481 - Create separate forms for shipping, payer and billing address r=MattN
* New AddressForm instances for each address type
* Move selected-state-key out of state for the address forms, and into an attribute
* Remove passing form title via state, just use data-title-edit and data-title-add on the element
* Remove shippingOption form title logic from address picker, just set the right attribute values from PaymentDialog
* Move setting the extraRequiredFields data attribute the payer form needs out to the payment-dialog's render.
* Amend onboarding logic to direct to billing address form when necessary
* Fix-up tests

Differential Revision: https://phabricator.services.mozilla.com/D11545
2018-11-21 19:23:27 +00:00
Diego Pino Garcia
342c880959 Bug 1497514 - Initialize BasicCardPage selectedStateKey to 'selectPaymentCard'. r=MattN
Also require basicCardPage has a selectedStateKey
2018-10-18 23:56:00 +03:00
Noemi Erli
4114fb4906 Backed out changeset 8b3b53341da2 (bug 1497514) for failures in browser/components/payments/test/mochitest/test_basic_card_form.html 2018-10-19 03:50:32 +03:00
Diego Pino Garcia
edba6d8e8e Bug 1497514 - Initialize BasicCardPage selectedStateKey to 'selectPaymentCard'. r=MattN
Also require basicCardPage has a selectedStateKey
2018-10-18 15:25:49 -07:00
Matthew Noorenberghe
62d03accc3 Bug 1435163 - Show merchant address errors on billing and payer screens. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D7149
2018-09-29 00:17:42 +00:00
Matthew Noorenberghe
cc38c1b150 Bug 1490805 - Add a required CSC/CVV field to the add card page. r=jaws
Depends on D6882

Differential Revision: https://phabricator.services.mozilla.com/D6883
2018-09-27 17:26:24 +00:00
Matthew Noorenberghe
ef8f325b1c Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI
2018-07-25 12:37:51 -07:00
Cosmin Sabou
4d1b71eee6 Backed out 5 changesets (bug 1476204) for browser chrome failures on browser_editCreditCardDialog. CLOSED TREE
Backed out changeset 10f3d1014592 (bug 1476204)
Backed out changeset a88879ea32e8 (bug 1476204)
Backed out changeset 001f13f2dd21 (bug 1476204)
Backed out changeset f0f464e3c27c (bug 1476204)
Backed out changeset ed92000eca20 (bug 1476204)
2018-07-26 04:12:56 +03:00
Matthew Noorenberghe
9e3276d213 Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI
2018-07-25 12:37:51 -07:00
Matthew Noorenberghe
b5efc53363 Bug 1463538 - Make all <input> in the PaymentRequest debug panel live. r=sfoster
MozReview-Commit-ID: 4nutxHpmnlc
2018-07-23 20:01:19 -07:00
Gurzau Raul
7bbe193f73 Backed out 4 changesets (bug 1463538) for failing on /payments/test/browser/browser_payments_onboarding_wizard.js
Backed out changeset 1c945ede0071 (bug 1463538)
Backed out changeset 8ccd9f4b230d (bug 1463538)
Backed out changeset e078fb39875e (bug 1463538)
Backed out changeset 798bf0d7928c (bug 1463538)
2018-07-24 11:16:21 +03:00
Matthew Noorenberghe
d8912866dc Bug 1463538 - Make all <input> in the PaymentRequest debug panel live. r=sfoster
MozReview-Commit-ID: 4nutxHpmnlc
2018-07-23 20:01:19 -07:00
Sam Foster
e1130d7c9a Bug 1447777 - Move state.completionState to state.request.completeStatus. r=MattN
* Spot-fix order details test to clone request before modifying it

MozReview-Commit-ID: AXjI1veRSk9
2018-07-19 19:45:58 -07:00
prathiksha
eeeee70c4d Bug 1463554 - Use native <option> UI with <rich-select> in the open state. r=MattN
MozReview-Commit-ID: KwuLdb6bz9L
2018-05-31 12:19:54 -07:00
Matthew Noorenberghe
6e3d25b3fd Bug 1469464 - Fix default shippingAddressErrors value for debugging. r=sfoster
MozReview-Commit-ID: 9jRmPT6FT2Z
2018-07-09 15:17:31 -07:00
Coroiu Cristina
03b5354741 Backed out 6 changesets (bug 1469464) for browser-chrome failures at browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
Backed out changeset f9d4885e8956 (bug 1469464)
Backed out changeset 59c418929764 (bug 1469464)
Backed out changeset 58c1a79fb661 (bug 1469464)
Backed out changeset 90654d5df81a (bug 1469464)
Backed out changeset 9453814beada (bug 1469464)
Backed out changeset 4b86bde79c91 (bug 1469464)
2018-07-12 10:52:02 +03:00
Matthew Noorenberghe
1dd253b449 Bug 1469464 - Fix default shippingAddressErrors value for debugging. r=sfoster
MozReview-Commit-ID: 9jRmPT6FT2Z
2018-07-09 15:17:31 -07:00
Jared Wein
33bb7942c7 Bug 1429180 - Option to use a new billing address when adding a new payment method. r=MattN
MozReview-Commit-ID: 5LrpUw1LdT3
2018-05-10 15:12:01 -04:00
Sam Foster
f37f93e022 Bug 1427960 - Add temporary addresses to state, add toggle to enable saving/not new addresses. r=MattN
* Implement store in paymentDialogWrapper for temporary addresses & creditCards
* Add the persist checkbox to the add/edit address form. Defaults to unchecked when adding an address in a private session.
* The union of saved and temporary addresses can be retrieved from paymentRequest.getAddresses(). References to state.savedAddresses updated to use this when appropriate
* New tests for adding and editing addresses from a private window


MozReview-Commit-ID: KyD2BPNFYtZ
2018-04-26 15:05:10 -07:00
prathiksha
d844caead1 Bug 1432921 - Show an address input form before the summary view for users without a saved address.r=MattN
MozReview-Commit-ID: 3T25SXyIiGI
2018-05-09 13:26:47 -07:00
Cosmin Sabou
e90f819219 Backed out changeset 75ba8129c687 (bug 1432921) for mochitest e10s permafailures on browser_new_tab_insert_position.js (bug 1455882). 2018-05-15 06:30:17 +03:00
prathiksha
9723da33ec Bug 1432921 - Show an address input form before the summary view for users without a saved address.r=MattN
MozReview-Commit-ID: 3T25SXyIiGI
2018-05-09 13:26:47 -07:00
Cosmin Sabou
6919a38df5 Backed out changeset 513a4aafc42a (bug 1432921) for mochitest e-10s failures on test_address_form.html. CLOSED TREE 2018-05-14 21:23:07 +03:00
prathiksha
d2b566c8df Bug 1432921 - Show an address input form before the summary view for users without a saved address. r=MattN
MozReview-Commit-ID: 3T25SXyIiGI
2018-05-09 13:26:47 -07:00
Matthew Noorenberghe
0c8c81240e Bug 1457287 - Move Payment Request UI code to browser/. r=jaws
MozReview-Commit-ID: LjrRXr1thc8
2018-04-27 07:20:32 -07:00