#uyenbreaden

1 messages · Page 1 of 1 (latest)

left peakBOT
echo thicket
#

hi there!

#

@signal otter please paste your question in this thread

signal otter
#

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)

echo thicket
#

are you building an iOS app?

signal otter
#

Yes

#

The cardParams is deprecated and now my app is crashing

echo thicket
#

are you using the Card Element?

signal otter
#

Yes

echo thicket
signal otter
#

I did

echo thicket
#

there's no mention of cardParams in that guide

signal otter
#

Yes

#

My code is different

echo thicket
#

exactly, that's why I recommend following the code in the guide I shared

signal otter
#

I can’t change

#

If I change my code all will be mess up

#

Am I downgrade my code ?

echo thicket
#

did your code work before?

signal otter
#

Yes

#

After I upgrade it crash

echo thicket
#

upgrade what exactly?

signal otter
#

I believe I’m using 3.23

echo thicket
#

you mean the Stripe iOS SDK?

signal otter