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)

63 Branch
defect

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.
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]
Whiteboard: [webpayments] → [webpayments] [triage]
Whiteboard: [webpayments] [triage] → [webpayments]
Depends on: 1476297
No longer depends on: 1476297
Not all payments are for items that can be shipped (e.g., digital goods), but perhaps this bug report already takes that into account...
Yeah, this is for when the shipping picker is shown.
Whiteboard: [webpayments] → [webpayments] [user-testing]
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P2 → P1
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.
Flags: qe-verify+
QA Contact: hani.yacoub
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 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+
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
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
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.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: