getbouncer / cardscan-ios

A library for scanning credit and debit cards
MIT License
207 stars 66 forks source link

How can I import the Stripe functionality using Carthage #72

Closed Sidetalker closed 5 years ago

Sidetalker commented 5 years ago

After integrating CardScan via Carthage I found myself unable to access the Stripe extension - is this something I can do via Carthage?

kingst commented 5 years ago

We're still very new to Carthage so there is probably a dependency that we need to setup to enable it. With cocoapods it was easy to have an optional dependency on Stripe, but we haven't looked into how to do it yet.

For the time being here is a link to the function, you can add an extension to the CreditCard object in your code, but give us some time to look into how to support this.

If you're experienced with Carthage and up for submitting a PR we'd love it!

Sidetalker commented 5 years ago

Thanks @kingst! I'll close this issue and will open up a PR if I find a way to make it work with Carthage.

collinvargo commented 3 years ago

I'm getting no such module errors for 'import CardScan' after upgrading CardScan to latest version. Can't find anything about this in the documentation as it's a well overdue update... any help?

kingst commented 3 years ago

Hi Collin, Are you using Carthage? If so, we dropped support for it when we updated to our 2.0 version. We support:

Here is a link to our docs for more information.

collinvargo commented 3 years ago

No. We're using pods & the stripe extension, actually. I was able to get it working. It was just a pod dein issue, luckily.

collinvargo commented 3 years ago

Hi Collin, Are you using Carthage? If so, we dropped support for it when we updated to our 2.0 version. We support:

* Swift Package Manager

* Cocoapods

* Manual installation by dragging and dropping our xcframework

Here is a link to our docs for more information.

Thanks for the timely reply and helpful resources :) Have a great weekend.