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

This library can be used with Stripe from Cocoapods! #132

Closed
nabilfreeman opened this issue Nov 27, 2018 · 1 comment
Closed

This library can be used with Stripe from Cocoapods! #132

nabilfreeman opened this issue Nov 27, 2018 · 1 comment

Comments

@nabilfreeman
Copy link
Collaborator

nabilfreeman commented Nov 27, 2018

Hey there,

I figured out how to skip the weird cli and Carthage steps to get this library working with Stripe in Cocoapods.

Install Stripe via Pods as usual.

Then you need to manually add a search path for Stripe.

  1. In Xcode, go to "Libraries -> ReactNativePayments.xcodeproj"
  2. Under "Build Settings" you need to edit "Header Search Paths"
  3. Add $(SRCROOT)/../../../../ios, with the search style set to "recursive".

Then Stripe should work without doing anything funky.

This needs to be a manual step after npm install. Not sure how to make it automatic via postinstall yet.

Hope this helps

@AdamZaczek
Copy link

AdamZaczek commented May 26, 2019

@nabilfreeman This is great! I was experimenting in a similar fashion but I thought I was wrong (payments still weren't working) - it turned out the app was building but it could not find the right headers so tokenizing didn't work.

Btw, your method can also be used without cocapods.
Thanks!

# 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

2 participants