stripe-react-native
stripe-react-native copied to clipboard
[BUG] Build failing due to Use of undeclared identifier 'STPCardBrandVisa'
trafficstars
Summary
I have a react native project where am using Stripe iOS SDK. I am upgrading the react-native version from 0.72.7 to 0.73.9.
After upgrading, iOS build has started failing with the error Use of undeclared identifier 'STPCardBrandVisa'.
I can find the STPCardBrand enum defined in the Stripe pods but still getting this error.
It used to work fine on previous react-native version i.e 0.72.7
Code to reproduce
PKAddPaymentPassRequestConfiguration *config = [STPPushProvisioningContext requestConfigurationWithName:cardDetails[@"cardHolderName"] description:cardDetails[@"cardDescription"] last4:cardDetails[@"last4digitsOfCard"] brand:STPCardBrandVisa primaryAccountIdentifier:cardDetails[@"cardId"]];
Installation method
Via cocoapods
pod 'Stripe'
SDK version
Stripe: 23.29.1 react-native: 0.73.9 XCode: 15.4