You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting. Created a fix. Btw the CVC will never be updated from the card field on both Android and iOS. See code snippet from iOS Stripe sdk as example.
func paymentCardTextFieldDidChange(_ textField:STPPaymentCardTextField){
if onCardChange !=nil{letbrand=STPCardValidator.brand(forNumber: textField.cardParams.number ??"")varcardData:[String:Any?]=["expiryMonth": textField.cardParams.expMonth ??NSNull(),"expiryYear": textField.cardParams.expYear ??NSNull(),"complete": textField.isValid,"brand":Mappers.mapCardBrand(brand)??NSNull(),"last4": textField.cardParams.last4 ??""]
if (cardField.postalCodeEntryEnabled){cardData["postalCode"]= textField.postalCode ??""}
if (dangerouslyGetFullCardDetails){cardData["number"]= textField.cardParams.number ??""}
onCardChange!(cardData as[AnyHashable:Any])}
if (textField.isValid){self.cardParams = textField.cardParams
self.cardPostalCode = textField.postalCode
}else{self.cardParams =nilself.cardPostalCode =nil}}
flutter_stripe: ^2.1.0
CardField isn't updating card number or cvv. Only expiry month and expiry year get updated. The other two remain
null
Probably because the only arguments it's receiving are:
{last4: null, expiryMonth: null, expiryYear: null, complete: false, brand: null}
Even with both of these set to true, number and cvc still aren't saved/returned in the card details.
And.. that's because these two parameters are missing from
_MethodChannelCardField
inlib/widgets/card_field.dart
The text was updated successfully, but these errors were encountered: