diff --git a/Stripe/STPAddressFieldTableViewCell.m b/Stripe/STPAddressFieldTableViewCell.m index 45a5eb44eb5..7168dffdaae 100644 --- a/Stripe/STPAddressFieldTableViewCell.m +++ b/Stripe/STPAddressFieldTableViewCell.m @@ -105,7 +105,7 @@ - (instancetype)initWithType:(STPAddressFieldType)type } self.textField.placeholder = NSLocalizedString(@"12345", nil); - self.textField.keyboardType = UIKeyboardTypeNumberPad; + self.textField.keyboardType = UIKeyboardTypePhonePad; self.textField.preservesContentsOnPaste = NO; self.textField.selectionEnabled = NO; if (!lastInList) { diff --git a/Stripe/STPObscuredCardView.m b/Stripe/STPObscuredCardView.m index 7d12ecf1b7b..68a889cfc31 100644 --- a/Stripe/STPObscuredCardView.m +++ b/Stripe/STPObscuredCardView.m @@ -32,19 +32,19 @@ - (instancetype)initWithFrame:(CGRect)frame { UITextField *last4Field = [UITextField new]; last4Field.delegate = self; - last4Field.keyboardType = UIKeyboardTypeNumberPad; + last4Field.keyboardType = UIKeyboardTypePhonePad; [self addSubview:last4Field]; _last4Field = last4Field; UITextField *expField = [UITextField new]; expField.delegate = self; - expField.keyboardType = UIKeyboardTypeNumberPad; + expField.keyboardType = UIKeyboardTypePhonePad; [self addSubview:expField]; _expField = expField; UITextField *cvcField = [UITextField new]; cvcField.delegate = self; - cvcField.keyboardType = UIKeyboardTypeNumberPad; + cvcField.keyboardType = UIKeyboardTypePhonePad; cvcField.secureTextEntry = YES; [self addSubview:cvcField]; _cvcField = cvcField; diff --git a/Stripe/STPPaymentCardTextField.m b/Stripe/STPPaymentCardTextField.m index d222fb27584..cf995c5265b 100644 --- a/Stripe/STPPaymentCardTextField.m +++ b/Stripe/STPPaymentCardTextField.m @@ -536,7 +536,7 @@ - (void)layoutSubviews { - (STPFormTextField *)buildTextField { STPFormTextField *textField = [[STPFormTextField alloc] initWithFrame:CGRectZero]; textField.backgroundColor = [UIColor clearColor]; - textField.keyboardType = UIKeyboardTypeNumberPad; + textField.keyboardType = UIKeyboardTypePhonePad; textField.font = self.font; textField.defaultColor = self.textColor; textField.errorColor = self.textErrorColor; diff --git a/Stripe/STPSMSCodeTextField.m b/Stripe/STPSMSCodeTextField.m index ec6b7c503e1..cf4f02a0bfa 100644 --- a/Stripe/STPSMSCodeTextField.m +++ b/Stripe/STPSMSCodeTextField.m @@ -71,7 +71,7 @@ - (instancetype)initWithFrame:(CGRect)frame { for (NSInteger i=0; i < 3; i++) { STPCodeInternalTextField *textField = [STPCodeInternalTextField new]; textField.delegate = self; - textField.keyboardType = UIKeyboardTypeNumberPad; + textField.keyboardType = UIKeyboardTypePhonePad; textField.internalDelegate = self; textField.textAlignment = NSTextAlignmentCenter; [textFields addObject:textField];