TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I'm open sourcing Creditly.js, an intuitive credit card form

34 pointsby johnjwangover 11 years ago

8 comments

Sir_Cmpwnover 11 years ago
Pretty severely broken on Firefox: can&#x27;t type in a card number, and the &quot;Fork me on GitHub&quot; banner is missing. That second problem is particularly weird, I don&#x27;t know what could be causing that. Also wondering if jQuery is really necessary for this.<p>Overall, it&#x27;s a nice concept. I wish checkout forms were more intuitive.
评论 #7123822 未加载
评论 #7123697 未加载
davektover 11 years ago
For a production ready alternative, take a look at <a href="http://creditcardjs.com" rel="nofollow">http:&#x2F;&#x2F;creditcardjs.com</a>, which was posted on HN a while back. The web site points out common mistakes when implementing credit card forms and delves into the motivation behind every design decision.
nostromoover 11 years ago
Why isn&#x27;t &lt;input type=&quot;card&quot;&gt; a thing?
评论 #7123944 未加载
cpwrightover 11 years ago
You should be able to type &quot;2&#x2F;16&quot; in the expiration, but instead when you try, you end up with &quot;21 &#x2F; 6&quot;.<p>I&#x27;m still amazed at how sites that can&#x27;t handle spaces or dashes in the card number or want it formatted in 4 different text boxes. The actual card number worked very well on your form.
评论 #7123796 未加载
humbyvaldesover 11 years ago
How about making the placeholder text lighten up a bit on focus. Something like this for webkit should work<p>:focus::-webkit-input-placeholder { color: #eee;}
评论 #7123883 未加载
评论 #7123856 未加载
rwaldronover 11 years ago
There isn&#x27;t a single test in the repo.
评论 #7123892 未加载
ragsagarover 11 years ago
unable to type card number and cvc in firefox 26.0
notastartupover 11 years ago
this is great but I like to use <a href="https://www.paymentiframe.com/" rel="nofollow">https:&#x2F;&#x2F;www.paymentiframe.com&#x2F;</a><p>the form resembles a credit card.
评论 #7123947 未加载
评论 #7123721 未加载