Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use iOS stripe sdk v.15.0.1 with Xcode 11.4 #1531

Closed
Igorsnaki opened this issue Mar 25, 2020 · 3 comments
Closed

How to use iOS stripe sdk v.15.0.1 with Xcode 11.4 #1531

Igorsnaki opened this issue Mar 25, 2020 · 3 comments

Comments

@Igorsnaki
Copy link

iOS version

ios 13.3.1

Installation method

Cocoa Pods

SDK version

v 12.0.1
and
v 19.0.1

Hi all,

We have application in production, which uses Stripe SDK.

Main flow:
For add payment we use STPAddCardViewController class

When add card receive delegate method:

func addCardViewController(_ addCardViewController: STPAddCardViewController,
                           didCreateToken token: STPToken,
                           completion: @escaping STPErrorBlock) {

and send token.tokenId to BE

due the fact that starting from v 16.0.0 this method is deprecated , I want to use v.15.0.1 version all the time. I don't need 16+ versions.

But starting from Xcode v11.4 Stripe SDK doesn't compile.

I saw, that you fix it in v 19.0.1 , but in v19.0.1 my method is deprecated.

So could please advise me what can I do

  1. Is it possible to get STPToken.tokenId value from this method ( from v 19.0.1 )
  • (void)addCardViewController:(STPAddCardViewController *)addCardViewController
    didCreatePaymentMethod:(STPPaymentMethod *)paymentMethod
    completion:(STPErrorBlock)completion;

Please show how.

  1. Or we have to migrate to Payments API ?? But this required work on BE and Android parts as well (

Looking forward to hearing from you.

There was a ticket with similar issue: #1400
And you recommend to use v. < 16. But now it impossible

@davidme-stripe
Copy link
Contributor

We've released v14.0.1, v15.0.2, v17.0.3, and v19.0.1 to Cocoapods with fixes for this issue.

We think this should cover all current versions without additional migration work. Please let us know if you're unable to update to one of these versions.

@davidme-stripe
Copy link
Contributor

Going to close this out as a dupe of #1525, feel free to continue the discussion in there.

@jonsonasMafjiozas
Copy link

Can't update my cocopods to 15.0.2
Error:
[!] CocoaPods could not find compatible versions for pod "Stripe":
In Podfile:
Stripe (= 15.0.2)

None of your spec sources contain a spec satisfying the dependency: Stripe (= 15.0.2).

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants