Open Bug 1476258 Opened 6 years ago Updated 2 years ago

Warn the user if the selected expiration month of the credit card is prior to the current month

Categories

(Firefox :: WebPayments UI, defect, P3)

63 Branch
defect

Tracking

()

People

(Reporter: hyacoub, Unassigned)

Details

(Whiteboard: [webpayments-reserve])

Attachments

(1 file)

[Affected versions]: 
Nightly 63.0a1

[Affected platforms]:
Platforms: Windows 10 x 64, Mac OS X 10.12 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 "Your Payment" page, click add a new payment method.
3. Fill all the required fields correctly but select the expiration month of the credit card prior to the current month.
4. Click "Save".

[Expected result]:
Submitting payment method form shouldn't be allowed if the expiration month of the credit card is prior to the current month.

[Actual result]:
The "Save" button should be grayed out or an error should be displayed when the expiration month of the credit card is prior to the current month.
Whiteboard: [webpayments] [triage]
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Whiteboard: [webpayments] [triage]
I'm not handling this in bug 1476204 since there is enough going on there and also I'm not sure this is exactly what we want. My understanding is that expired credit cards can still be accepted but it's up to the merchant and their agreement with the cc. processor. I thought we were going to give a warning maybe instead of preventing payment? Consider the case of where your card just expired but you didn't receive the replacement yet (maybe it was mailed to a different address than where you reside).

I also think this doesn't need to be part of M3.

Jacqueline, what do you think?
Status: RESOLVED → REOPENED
Flags: needinfo?(jsavory)
Priority: -- → P3
Resolution: DUPLICATE → ---
Whiteboard: [webpayments-reserve]
Status: REOPENED → NEW
I agree that we can let the merchant reject the PaymentResponse, so warning is good enough. It does seem that a fairly large percentage of payment attempts with expired cards get authorized: https://wallethub.com/edu/credit-cards-expiration-date/25566/
Agreed, sounds like we shouldn't block on an expired credit card but provide an error to remind a user in the case that they do need to update the card. I will add a note in the spec.
Flags: needinfo?(jsavory)
Summary: Submitting payment method form shouldn't be allowed if the expiration month of the credit card is prior to the current month → Warn the user if the selected expiration month of the credit card is prior to the current month
Attached image Expired-cc.png
Add Payment Information:
When the credit card is expired both month and year field should be highlighted yellow. The selected drop down has a popup that appears above the field (so not to overlap with the drop down options).

Order Summary
The credit card field is highlighted and yellow text appears below 

Link to Spec: https://e-pang.github.io/Webpayments/#artboard2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: