#uyenbreaden
1 messages · Page 1 of 1 (latest)
How can I fix this
'cardParams' is deprecated: Use .paymentMethodParams instead. If you must access the STPPaymentMethodCardParams, use .paymentMethodParams.card.
// Collect the card details
let cardParams = self.cardTextField.cardParams
let paymentMethodParams = STPPaymentMethodParams(card: cardParams, billingDetails: nil, metadata: nil)
are you building an iOS app?
are you using the Card Element?
Yes
Then I recommend reading this guide that should be up-to-date: https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=custom
I did
there's no mention of cardParams in that guide
exactly, that's why I recommend following the code in the guide I shared
did your code work before?
upgrade what exactly?
The latest version of stripe
I believe I’m using 3.23
you mean the Stripe iOS SDK?
The version of pod file