stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

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

Open SwetaTanwar opened this issue 1 year ago • 2 comments
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

Screenshot 2024-08-14 at 7 07 42 PM Screenshot 2024-08-14 at 7 08 23 PM

SwetaTanwar avatar Aug 14 '24 13:08 SwetaTanwar