Closed
Bug 1475521
Opened 7 years ago
Closed 7 years ago
Payments shouldn't be processed without selecting a shipping address
Categories
(Firefox :: WebPayments UI, defect, P1)
Tracking
()
VERIFIED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox62 | --- | unaffected |
firefox63 | --- | verified |
People
(Reporter: hyacoub, Assigned: jaws)
References
Details
(Whiteboard: [webpayments] [user-testing])
Attachments
(1 file)
[Affected versions]:
Nightly 63.0a1
[Affected platforms]:
Platforms: Windows 10 x 64, Mac OS X 10.13 and Ubuntu 17.04 x64.
[Preconditions]:
1. Set the pref dom.payments.request.enabled to "true";
2. Set the pref dom.payments.loglevel to “Debug” to increase the verbosity of console messages.
3. Make sure you have at least one Shipping Address and one Shipping Option saved in your browser (Saved Cards).
[Steps to reproduce]:
1. Go to "https://rsolomakhin.github.io/pr/us/" page and click on "Buy".
2. From "Payment method" page select payment method without selecting a shipping address and click on "Pay".
[Expected result]:
Payments shouldn't be proceed without selecting a shipping option.
[Actual result]:
Payment is proceed and the response is correctly displayed and filling with the correct data entered before.
Updated•7 years ago
|
status-firefox62:
--- → unaffected
Priority: -- → P2
Summary: Payments shouldn't be proceed without selecting a shipping address → Payments shouldn't be processed without selecting a shipping address
Whiteboard: [webpayments]
Updated•7 years ago
|
Whiteboard: [webpayments] → [webpayments] [triage]
Updated•7 years ago
|
Whiteboard: [webpayments] [triage] → [webpayments]
Comment 2•7 years ago
|
||
Not all payments are for items that can be shipped (e.g., digital goods), but perhaps this bug report already takes that into account...
Comment 3•7 years ago
|
||
Yeah, this is for when the shipping picker is shown.
Updated•7 years ago
|
Whiteboard: [webpayments] → [webpayments] [user-testing]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P2 → P1
Comment 4•7 years ago
|
||
If possible, please try to handle this for all of the pickers on the summary page since it's possible for any of them to be empty.
Updated•7 years ago
|
Flags: qe-verify+
QA Contact: hani.yacoub
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8995671 [details]
Bug 1475521 - Payments shouldn't be processed without selecting a shipping address.
https://reviewboard.mozilla.org/r/260062/#review267102
::: browser/components/payments/res/containers/payment-dialog.js:235
(Diff revision 1)
> + if (completeStatus == "") {
> + completeStatus = "initial";
> + }
> +
> switch (completeStatus) {
> case "initial":
Hmm… not sure if you need to rebase or what but I removed the "intiial" state and instead we use "".
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8995671 [details]
Bug 1475521 - Payments shouldn't be processed without selecting a shipping address.
https://reviewboard.mozilla.org/r/260062/#review267144
::: browser/components/payments/res/containers/payment-dialog.js:247
(Diff revision 3)
> - case "": // initial/default state
> + case "": {
> + // initial/default state
> + this._payButton.textContent = this._payButton.dataset.label;
> + this._payButton.disabled =
> + (state.request.paymentOptions.requestShipping &&
> + (!this._shippingAddressPicker.dropdown.selectedOption ||
Nit: I would rather use picker.value so that this code doesn't rely on the implementation details of pickers.
Attachment #8995671 -
Flags: review?(MattN+bmo) → review+
Comment hidden (mozreview-request) |
Comment 11•7 years ago
|
||
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f3147045b0b5
Payments shouldn't be processed without selecting a shipping address. r=MattN
Comment 12•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Comment 13•7 years ago
|
||
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Verified fixed on the latest Nightly version 63.0a1 (2018-07-30) on Windows 10, Mac 10.13, Ubuntu 16.04.
The "Pay" button is grayed out if a shipping address is not selected, thus the payment cannot be processed.
You need to log in
before you can comment on or make changes to this bug.
Description
•