Opened 7 years ago

Last modified 7 years ago

#28 new defect

Add a card : Card number - validation

Reported by: victor Owned by: somebody
Priority: major Milestone:
Component: general Version:
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by victor)

document: Additional tasks for ITCPay.docx

In "Card number" field in "Add a card" page, currently spaces, dashes aren't allowed. Users get error if they enter spaces, dashes in "Card number" field. If an user visits the "Add a card" page from his computer, he can not enter any spaces or dashes (because even if he strokes space, dash key, nothing happens, only if he press number keys, he is able to type) at all.
But if the user visits "Add a card" page from a mobile device, he is able to enter spaces, dashes in the "Card number" field initially. But when he submits the card details with a card number containing spaces, dashes, he gets error.
As we don't accept spaces, dashes in "Card number" box, for now, post a virtual display text "No spaces or dashes" inside the "Card number" field to alert the user. Virtual display text means this text will disappear automatically as soon as the user clicks in the "Card number" box.

Now can you allow the users to enter spaces dashes as well in "Card number" field? For example, even if an user enters spaces, dashes in "Card number" field, our system will not consider those spaces, dashes and create a numeric value automatically. Is it possible?

Also keep in mind that even if we allow the users to enter spaces, dashes in the "Card number" field, we still have to validate the card number as usual.

Change History (1)

comment:1 in reply to: ↑ description Changed 7 years ago by victor

  • Component set to general
  • Description modified (diff)
  • Owner set to somebody

Replying to victor:

Now can you allow the users to enter spaces dashes as well in “Card number” field? For example, even if an user enters spaces, dashes in “Card number” field, our system will not consider those spaces, dashes and create a numeric value automatically. Is it possible?

Yes, this is possible

Note: See TracTickets for help on using tickets.