Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Are you sure that the doc is correct #70

Closed
Ansalibrahim opened this issue Jun 10, 2016 · 1 comment
Closed

Are you sure that the doc is correct #70

Ansalibrahim opened this issue Jun 10, 2016 · 1 comment

Comments

@Ansalibrahim
Copy link

I've added compile 'com.stripe:stripe-android:+' into my gradle dependencies and sync the gradle. After that I tried the codes from the doc. Unfortunately, the class Card had no contructors(only default contructor is available). I am stuck there and not sure about how to proceed with the integration. Am I missing something in the steps or doc is no more valid.

@mrmcduff-stripe
Copy link
Contributor

Card does indeed have a public constructor (see https://github.com/stripe/stripe-android/blob/master/stripe/src/main/java/com/stripe/android/model/Card.java#L189)

Are you by chance trying to use a com.stripe.model.Card instead of a com.stripe.model.android.Card? The former has no constructor, but the latter has several public constructors.

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

No branches or pull requests

2 participants