Skip to content

[BUG] [P1] STPPaymentCardTextField zip code field registers wrong key input on iOS 26 (iPad) #6142

@marcin-mucha

Description

@marcin-mucha

Summary

On iPads running iOS 26, the postal/ZIP code field inside STPPaymentCardTextField registers incorrect characters. For example, pressing the delete key appends "2" instead of deleting. The card number, expiry, and CVC fields are not affected — only the postal code field.
See the attached video.

The postal code field is the only sub-field using .numbersAndPunctuation keyboard type (line 860 in STPPaymentCardTextField.swift). All other fields use .asciiCapableNumberPad (line 1580 in STPPaymentCardTextField.swift). We suspect this is related to an iOS 26 keyboard regression affecting full keyboard layouts, but we're looking for a workaround on the Stripe SDK side.

What is blocked by this issue?

Users are unable to enter credit card details.

Code to reproduce

STPPaymentCardTextField wrapped in UIViewRepresentable for SwiftUI

  1. Open a payment flow using STPPaymentCardTextField on an iPad running iOS 26
  2. Enter a valid card number, expiry, and CVC
  3. Tap the ZIP code field
  4. Type digits or press delete on the keyboard
  5. Observe that wrong characters appear (e.g., delete key inputs "2")

iOS version

26.2.1

Installation method

SPM via stripe-ios-spm

SDK version

Stripe iOS SDK: 25.3.1

Other information

IMG_5545.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions