GithubHelp home page GithubHelp logo

creditcardview's People

Contributors

ema987 avatar gilbertorsf avatar kwiky avatar loudenvier avatar michelelacorte avatar ppodgorski avatar sharish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creditcardview's Issues

Expirating Date validation

Congrats for the library, I really like the idea to bring some reality to android views.

I've been working on mCommerces companies for a while and I'd like to share a situation that I was face in this field.

We, as android developers or client developer, can not block the user to input a expired date in the field. This is a kind of business logic that should be handle in the backend. Sometimes the payment brand (visa, amex, mastercard, etc) will accept the purchase, even if the credit card is already expired.

App crashes while starting CardEditActivity while passing the extras

I am starting the activity as:

Intent intent = new Intent(getActivity(), CardEditActivity.class);
                intent.putExtra(CreditCardUtils.EXTRA_CARD_HOLDER_NAME, "Shajeel Afzal");
                intent.putExtra(CreditCardUtils.EXTRA_CARD_NUMBER, "1234567890123456");
                intent.putExtra(CreditCardUtils.EXTRA_CARD_EXPIRY, "01/17");
                intent.putExtra(CreditCardUtils.EXTRA_CARD_CVV, "234");
                intent.putExtra(CreditCardUtils.EXTRA_CARD_SHOW_CARD_SIDE, CreditCardUtils.CARD_SIDE_BACK);

                startActivityForResult(intent, EDIT_CARD_CODE);

But the app crashes and shows the following log:

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.selectAll()' on a null object reference
                                                                                at com.cooltechworks.creditcarddesign.pager.CardExpiryFragment.focus(CardExpiryFragment.java:122)
                                                                                at com.cooltechworks.creditcarddesign.pager.CardFragmentAdapter.focus(CardFragmentAdapter.java:14)
                                                                                at com.cooltechworks.creditcarddesign.CardEditActivity$3.onPageSelected(CardEditActivity.java:132)
                                                                                at android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1931)
                                                                                at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:662)
                                                                                at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:628)
                                                                                at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:609)
                                                                                at com.cooltechworks.creditcarddesign.CardEditActivity.showNext(CardEditActivity.java:225)
                                                                                at com.cooltechworks.creditcarddesign.CardEditActivity$4.onCardEntryComplete(CardEditActivity.java:156)
                                                                                at com.cooltechworks.creditcarddesign.pager.CardFragmentAdapter.onActionComplete(CardFragmentAdapter.java:75)
                                                                                at com.cooltechworks.creditcarddesign.pager.CreditCardFragment.onComplete(CreditCardFragment.java:39)
                                                                                at com.cooltechworks.creditcarddesign.pager.CardNumberFragment.afterTextChanged(CardNumberFragment.java:71)
                                                                                at android.widget.TextView.sendAfterTextChanged(TextView.java:7738)
                                                                                at android.widget.TextView.setText(TextView.java:4105)
                                                                                at android.widget.TextView.setText(TextView.java:3954)
                                                                                at android.widget.EditText.setText(EditText.java:85)
                                                                                at android.widget.TextView.setText(TextView.java:3929)
                                                                                at com.cooltechworks.creditcarddesign.pager.CardNumberFragment.onCreateView(CardNumberFragment.java:43)
                                                                                at android.support.v4.app.Fragment.performCreateView(Fragment.java:2074)
                                                                                at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
                                                                                at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
                                                                                at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758)
                                                                                at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1632)
                                                                                at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:637)
                                                                                at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:166)
                                                                                at android.support.v4.view.ViewPager.populate(ViewPager.java:1235)
                                                                                at android.support.v4.view.ViewPager.populate(ViewPager.java:1083)
                                                                                at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1609)
                                                                                at android.view.View.measure(View.java:17637)
                                                                                at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
                                                                                at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
                                                                                at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
                                                                                at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
                                                                                at android.view.View.measure(View.java:17637)
                                                                                at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
                                                                                at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
                                                                                at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
                                                                                at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
                                                                                at android.view.View.measure(View.java:17637)
                                                                                at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
                                                                                at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)
                                                                                at android.view.View.measure(View.java:17637)
                                                                                at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
                                                                                at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
                                                                                at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
                                                                                at android.view.View.measure(View.java:17637)
                                                                                at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
                                                                                at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
                                                                                at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
                                                                                at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
                                                                                at android.view.View.measure(Vie

Card Holder Name Length

Investigating I see the max length for card holder name in the library is 16, but I've seen several VISA and MASTERCARD that supports until 21 characters, it could be better if this limit could be parameterizable in an integer resource or increase the limit

Only show last 4 digits of credit card

Thank for this awesome library ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
but i would like to request if there is a method to replace all the credit card number to bullet except the last 4 digits will be great.

Thank you very much

No Shown in Nought OS version

The Very Helpfull Library to draw card same as i want,
working very easy nd efficiently in Device
But for new OS devices CardContainer Not shown there is no any view created in Nought without any exception /Error
Just Gone the view or CreditCard.
Guide me how can i Shown Up My card in Nought nd higher version Devices

Field name customization

Possible duplicate of #1.

Hi, I want to customize the texts in the cardview and the edittext labels. Is there any way to do that?

How Can I do Error Checking?

How can I check if someone leaves all the fields blank? I would like to make sure a user fills out each field before returning to the calling Activity.

Keyboard covers buttons and doesn't scroll

http://i.imgur.com/8Q9yCgw.png
http://i.imgur.com/8Q9yCgw.png

I can't seem to get the activity view to scroll allowing the bottom button to be shown. I tried adding

<activity android:name="com.cooltechworks.creditcarddesign.CardEditActivity" android:screenOrientation="portrait"
            android:configChanges="keyboard|keyboardHidden" />

to the manifest like shown in the sample app but It's still not scrolling. Any ideas what I should try? Thanks mate!

Translation and modified field

Hello,
How do I modify the size of the card name field?
How can I translate all fields?
fotocard

The buttons i can put
ย 
libcard

Sorry for the english ..

Thanks..

Crashing the app due to filter error

Please fix in the code.

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setFilters(android.text.InputFilter[])' on a null object reference
at com.cooltechworks.creditcarddesign.pager.CardCVVFragment.setMaxCVV(CardCVVFragment.java:69)
at com.cooltechworks.creditcarddesign.pager.CardFragmentAdapter.setMaxCVV(CardFragmentAdapter.java:92)
at com.cooltechworks.creditcarddesign.CardEditActivity.checkParams(CardEditActivity.java:102)
at com.cooltechworks.creditcarddesign.CardEditActivity.onRestoreInstanceState(CardEditActivity.java:207)
at android.app.Activity.performRestoreInstanceState(Activity.java:1015)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1175)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2735)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4655)
at android.app.ActivityThread.-wrap19(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1551)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6349)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)

Next and previous button is missing in creditcard

i m writing another issue cause i m not able to reopen my previous issue.
text half cut in this issue you suggest me use different dependency, but there is no next and previous button.

My text half cut problem is solved but now i m not able to get data from credit card because of missing done button.

screenshot_20170117-101333

Null Object Reference

Hi sharish, I'm getting a null object reference error when trying to edit an existing credit card. It appears in your CardExpiryFragment in the focus method when the cardExpiryView calls selectAll().
screen shot 2016-10-23 at 10 31 46 am

16 character name only

I already did what was recommended here but it still only has 16 possible characters

25

4 digit CVV

I have card with 4 digit CVV, now library doesn't allow me to put 4 digits.can you help me ? is there any function to set dynamic CVV size ?

Union pay

when does the unipay will be ready?

American Express Cards

American Express card numbers are usually 14 digits long and have a different format for the CVV. The American Express CVV is a 4 digit number, might be good to account for these.

Also, it might be good to conform to the IIN numbers that can be seen at this Wiki page: https://en.wikipedia.org/wiki/Bank_card_number

Great product, keep up the great work. I'll try and fix this myself and sent a PR, wanted to let you know that these exist.

CVV code not setting

hey Sharish !! i am setting the cvv code but on clicking the credit card the cvv code field is empty

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.