checkout / frames-ios

Frames iOS: making native card payments simple

Home Page:https://www.checkout.com/docs/integrate/sdks/ios-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expiry date textfield doesn't append '/' which lead to invalid date format error - Frames 4.0.4, Xcode 14.3

sayalideopurkar opened this issue · comments

Describe the bug
Expiry date textfield doesn't append '/' while adding the month & year. So instead of MM/YY, the final input text looks like MMYY and there is no way for user to explicitly add '/'. Hence the validation error "Please enter a valid expiry date" can never be resolved.
This blocking behaviour is observed on simulator build with Xcode 14.3

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Add Card' form
  2. Click on 'Expiry date' textfield
  3. Start typing month & year of card expiry
  4. See error - 'Please enter a valid expiry date'

Expected behavior
A slash '/' should be auto appended between month (MM) and year (YY) like MM/YY instead of MMYY

Screenshots
Screenshot 2023-05-17 at 12 38 26

Additional context
Xcode Version - 14.3 (14E222b)
MacOS Version - Ventura 13.0.1
Chip - Apple M1 Pro

The issue is not reproducible on Sample app - iOS Example Frame SPM

Duplicate