sharish / creditcardview Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
just letting you know, your awesome lib is available in xamarin now: https://github.com/kibotu/Xamarin.Android.CreditCardView
Is there a way to change the text color when using stock dark theme?
Right now the text when editing or adding a new card is white on white
I already did what was recommended here but it still only has 16 possible characters
25
I have copied the code from https://github.com/cooltechworks/CreditCardView#edit-existing-card for editing the card information.
The code gives error at intent.putExtra(CreditCardUtils.EXTRA_VALIDATE_EXPIRY_DATE, true);
because it is not able to find the CreditCardUtils.EXTRA_VALIDATE_EXPIRY_DATE
. I have checked the CreditCardUtils
.
Please solve or update the readme file.
It would be nice if the library luhn validated the credit card number. Similar to how it validates the exp. date.
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
Hi guys,
Thank you for the awesome library. Is there any way to change Previous, Next and Done buttons color? I would like it to be the same color with my app's primarily color.
Thanks in advance!
keep saying try again . android studio 2.2.1
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.
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.
Hi guys,
When our data comes from the server I know only the card type ("VISA", "AMEX", "Master Card") and the last 4 digit of the card.
Is there any way to indicate the card's type in CreditCardView without knowing the full credit card number?
Thanks in advance!
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!
Hi, i want to know how to verify which side is showing, front or back
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.
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.
when does the unipay will be ready?
Could not GET 'https://jitpack.io/com/github/sharish/CreditCardCheckoutView/v1.0.4/CreditCardCheckoutView-v1.0.4.pom'. Received status code 401 from server: Unauthorized
This could be due to an outage or in case remote repository become private or been deleted.
Any mainteiners here?
I am working on an app in which i want to change color of a CreditCardView. Which is not supported in lib at the moment.
Hi
When i update android studio 3.5 and gradle 3.5. Error => Failed to resolve: com.github.ozodrukh:CircularReveal:1.0.5
How to fix it?
hey Sharish !! i am setting the cvv code but on clicking the credit card the cvv code field is empty
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?
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 ?
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
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
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.