stripe / stripe-react-native

React Native library for Stripe.
https://stripe.dev/stripe-react-native
MIT License
1.28k stars 264 forks source link

[BUG] Build failing due to Use of undeclared identifier 'STPCardBrandVisa' #1716

Open SwetaTanwar opened 2 months ago

SwetaTanwar commented 2 months ago

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

Screenshot 2024-08-14 at 7 07 42 PM Screenshot 2024-08-14 at 7 08 23 PM
SwetaTanwar commented 2 months ago

Any update on the above?

SwetaTanwar commented 2 months ago

Team, do we have any update?