TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Card – An interactive CSS3 credit card form

376 点作者 jessepollak将近 11 年前

50 条评论

dclowd9901将近 11 年前
Looks great. Few notes:<p>1) On the already crowded payment form, I don&#x27;t want to devote a hell of a lot of space to something that is otherwise inconsequential (a picture of a credit card)<p>2) Is it a great idea to broadcast someone&#x27;s card numbers so clearly? The graphic is so obviously a credit card, it would be easy for any onlooker to spot and steal.<p>Really, this seems like aesthetics for aesthetics&#x27; sake, which I traditionally shy from, but I always like seeing people take a swing at something.
评论 #7851182 未加载
评论 #7854418 未加载
dshankar将近 11 年前
Looks gorgeous. I can&#x27;t help but wonder if people unfamiliar with technology and ecommerce would be deterred by such a form? It might give some users the impression that the website is &quot;copying&quot; the credit card. It would be interested to test the opinions of non-tech savvy users.
评论 #7848118 未加载
评论 #7847954 未加载
评论 #7851913 未加载
评论 #7848060 未加载
leepowers将近 11 年前
This is neat, and I love the look and feel. The only problem is that it&#x27;s completely unnecessary and possibly confusing for potential customers. But that&#x27;s just my opinion. It would be interesting if someone would put this on their own payment page and share the conversion metrics.<p>There&#x27;s a few annoyances that threw me off:<p>1) Like others mentioned in this thread, I first tried to enter credit card details directly on the card. I was initially blind to the text inputs underneath the card. If the card was initially hidden, then faded in to the left&#x2F;right of the input form that might alleviate this confusion. The problem is the card is so beautiful and neat looking I immediately anchor to the card instead of the input form.<p>2) When entering an invalid date or credit card number there&#x27;s no visual feedback. It&#x27;s very common to be blind to your own input errors, which necessitates clear communication of error state.<p>3) Even more confusing, I can&#x27;t tab to the CVC field when the date is invalid. But I can tab to the name field when the credit card number is invalid. This inconsistent behavior initially made me think the form was &quot;broken&quot;.
goeric将近 11 年前
It&#x27;s confusing because my first instinct was to type my credit card info on the card itself. It took me a few seconds to realize there was a form below it.
评论 #7847724 未加载
评论 #7849151 未加载
jacquesm将近 11 年前
Let me be the first to rain on your parade (sorry).<p>If you&#x27;re <i>not</i> the merchant of record using this form could very well violate your terms of service for whatever credit card company you have your merchant account with, and&#x2F;or the IPSP terms of service.<p>Using this can result in terminating your merchant account or temporary suspension depending on how they take it.<p>The reason why is that the logo&#x27;s are <i>only</i> allowed to be used by the merchant of record, for many of the parties interested in that this will be their IPSP. So verify prior to doing this that you actually are allowed to use the card association logos. (And for that matter, that you&#x27;re authorized to capture the card details!).<p>Please be careful, if you lose your merchant account it could be a while before you get it back, if ever.
评论 #7850303 未加载
wingerlang将近 11 年前
On the &quot;Before&quot; it says &quot;painful&quot;. What is painful about it?<p>And as someone else said, I also tried entering ON the card rather than below it.
评论 #7852083 未加载
评论 #7847925 未加载
aresant将近 11 年前
Very cool experiment but as others have pointed out it&#x27;s tough to beat simplicity from a conversion perspective.<p>Example Amazon:<p><a href="http://i.imgur.com/aK8K4UY.png?1" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;aK8K4UY.png?1</a><p>Single name on card field Card # Dropdown for EXP<p>Example Stripe:<p><a href="https://stripe.com/checkout" rel="nofollow">https:&#x2F;&#x2F;stripe.com&#x2F;checkout</a><p>Single name on card field Card # Exp &#x2F; CVC<p>Less is more when it comes to this point in your conversion funnel.<p>And the fundamental conversion issue around collecting a CC at this point in cycle isn&#x27;t usually design, it&#x27;s trust.
评论 #7847721 未加载
r00fus将近 11 年前
Looks nice, perhaps you can implement the Luhn algorithm to ensure the CC is not known-invalid (to prevent data entry error)?<p><a href="http://en.wikipedia.org/wiki/Luhn_algorithm" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Luhn_algorithm</a>
评论 #7848303 未加载
wmeredith将近 11 年前
This is really pretty. Kudos to the dev&#x2F;designers. However, if there&#x27;s one thing on my website I don&#x27;t want to be exciting, it&#x27;s entering payment data.
timme将近 11 年前
There&#x27;s nothing painful about a regular form with the minimum amount of fields.
joeframbach将近 11 年前
Great, so instead of worrying about someone peeking over my shoulder, I now have to worry about the person 30 feet away, with the size of that font.
JoshTriplett将近 11 年前
It&#x27;s a nice display, but as others have said it invites attempts to type on the card itself (which doesn&#x27;t work). It also doesn&#x27;t scale with increased font sizes; the card remains the same size and text within it wraps or gets cut off.
brandon272将近 11 年前
Interesting experiment! I&#x27;d like to see some data on how effective it is versus typical card entry fields.<p>At first glance I think users would be extremely confused by what is happening in terms of what to fill out, if not full out distracted by the animated card.
tomhschmidt将近 11 年前
FWIW, Chrome blocked your calls to load various JS and CSS files from Yandex because you used HTTP, not HTTPS.
评论 #7847612 未加载
primitivesuave将近 11 年前
I once saw a detailed analysis of skeuomorphic credit card input, and it turns out the general population is less likely to fail on a non-moving credit card input box, largely because of difficulties with entering the CVC code. This combines both the skeuomorphic nature of Skeuocard by Ken Keiter (<a href="http://kenkeiter.com/skeuocard/" rel="nofollow">http:&#x2F;&#x2F;kenkeiter.com&#x2F;skeuocard&#x2F;</a>) with the simplicity of creditcardJS (creditcardjs.com). I love it!
ultimoo将近 11 年前
I&#x27;m no design or UX expert and this does look smooth.<p>However, how does this stack up against the recent UX trend of moving away from skeumorphism? Why should a CC number be represented by an actual plastic card that is coming to life and flipping around on my screen?<p>I believe the future of plastic credit cards is limited given the security loop holes etc. Companies like Square, Google, etc. are already championing transferring money over native internet identities like email addresses.
评论 #7849234 未加载
stock584将近 11 年前
Pretty nice, pretty similar to JS Skeuocard (<a href="http://kenkeiter.com/skeuocard/" rel="nofollow">http:&#x2F;&#x2F;kenkeiter.com&#x2F;skeuocard&#x2F;</a>)
评论 #7849627 未加载
iLoch将近 11 年前
This is great! There&#x27;s also Skeuocard (<a href="http://kenkeiter.com/skeuocard/" rel="nofollow">http:&#x2F;&#x2F;kenkeiter.com&#x2F;skeuocard&#x2F;</a>) which offers a bit more of a skeuomorphic design. I think I favour the form as part of the card, however this may be confusing&#x2F;inaccessible to some people - nice work on the library!
评论 #7851774 未加载
评论 #7850913 未加载
kdd将近 11 年前
This code looks eerily similar to Stripe&#x27;s jquery.payment (<a href="https://github.com/stripe/jquery.payment/blob/master/lib/jquery.payment.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stripe&#x2F;jquery.payment&#x2F;blob&#x2F;master&#x2F;lib&#x2F;jqu...</a>)
christudor将近 11 年前
For me the whole thing took too long to load. I didn&#x27;t even see the card until I had filled in most of the data in the fields (and I was thinking, &#x27;What&#x27;s so different about this?&#x27;). Then the card loaded and all the data I had put in already was automatically deleted and I had to do it all again. If I was buying something on a whim, this might just be enough for me to think &#x27;Forget it&#x27;.<p>More generally, while I <i>do</i> think that entering card details is a bit of a ball-ache, I <i>don&#x27;t</i> think the solution is having a picture of the card on screen...
simcop2387将近 11 年前
It doesn&#x27;t seem to be working to tab between fields in Chrome. Once I&#x27;ve entered the expiration date it just fails to go to CVC or let me tab into it. had to use the mouse to switch fields.
评论 #7848115 未加载
pointpointclick将近 11 年前
I can&#x27;t imagine I would ever use this, as a developer or as an e-commerce customer. But it is certainly a well-executed, fun exercise... Folks on CodePen.io would go bananas over it.
ChrisArchitect将近 11 年前
Used in production today on an internal tool that we do some billing&#x2F;card running on. After some small jquery options struggles, it worked as it says on the tin.<p>Interesting reaction by test group when deploying....test group being a small group of coworkers. Without announcement, they immediately were untrusting of it and thought it was somehow consuming the credit card information maliciously. This is the security climate we find ourselves in. heh But after assuring them, they thought it was pretty neat&#x2F;fun.<p>Fun.
jakejake将近 11 年前
I really want to like this because the design and functionality of is very cool. Like others I tried to start typing on the card so there is definitely an element of confusion that isn&#x27;t there with a normal form. The last place I want to risk any confusion is the stage at which the customer is trying to pay me! A variation of this where you could type on the card might be interesting.
muaddirac将近 11 年前
Looks nice, but doesn&#x27;t play well with autocomplete in chrome (tab completing my name didn&#x27;t show up on the card)
评论 #7848027 未加载
wwarren将近 11 年前
This looks great, but any code that attempts to guess the card type using the first few numbers always makes me nervous
评论 #7847540 未加载
评论 #7847733 未加载
评论 #7847740 未加载
评论 #7848183 未加载
评论 #7847921 未加载
评论 #7847549 未加载
评论 #7847741 未加载
brainless将近 11 年前
Looks absolutely beautiful. But I stopped for a second and did not, at first, give my real card number.<p>Are we so used to crappy CC forms, that a nice, flashy one (which I know is open sourced on github - I can validate if they are doing something bad) is slightly scaring me?<p>Wow that&#x27;s the power of crappy design fed to us for years.
lugg将近 11 年前
Tab from expiry to cvc doesn&#x27;t work in the interactive. Other than that, honestly, I was just impressed by the &quot;boring&quot; version. Very tidy form, nice to see a new take on it. Existing cc forms around are seriously painful to use. Really digging the card vendor detection, neat touch.
pbreit将近 11 年前
That&#x27;s a lot of code for a sliver of functionality. Does that concern developers these days?
评论 #7847936 未加载
Sebguer将近 11 年前
Oh, wow. The first time I loaded the page the image didn&#x27;t form correctly and it was just a block of text which was hideous. Then I read the top comment calling it gorgeous so went back, and now that it loaded properly, I agree! Quite awesome.
xrt将近 11 年前
thank you for this. i&#x27;ve never understood why credit cards are printed w&#x2F; spaces between the numbers, presumably to reduce transcription errors, but 99.9% of web forms force you to enter the number without any spaces.
mikeryan将近 11 年前
Its broken for American Express cards. Amex cards don&#x27;t do the number as 4 groups of 4, and the security code is on the front.<p>EDIT: I apologize it works! (note I did try it but apparently mis-typed my first four digits ....)
评论 #7847922 未加载
评论 #7847924 未加载
xdissent将近 11 年前
Doesn&#x27;t seem to show the card at all in Safari. Works in Chrome, however.
评论 #7847552 未加载
tomardern将近 11 年前
Anyone seen a similar implementation which doesn&#x27;t need jQuery?
评论 #7848116 未加载
tangoalpha将近 11 年前
Except that I would have to use the mouse to navigate from Expiry Date to CSV field. I would prefer a simpler one where i wouldn&#x27;t need to touch the mouse.
javierga将近 11 年前
Love it, reminds me of the Dropr design when paying with credit cards. I guess it&#x27;s not for every webpage, but it&#x27;s a playful payment design
pestaa将近 11 年前
I see no difference. This error is displayed in my console.<p><pre><code> ReferenceError: hljs is not defined </code></pre> On line 123. Hope this helps, good luck.
评论 #7847953 未加载
评论 #7848007 未加载
评论 #7848918 未加载
HarrietJones将近 11 年前
Gorgeous.<p>Two minor points...<p>It would be nice if it checksummed the card to ensure the entered number was a valid credit card number on form exit.<p>You can get 17 digit credit card numbers now.
smrz将近 11 年前
Can&#x27;t tab out of the expiration date field FYI
cesarbs将近 11 年前
Looks really nice, but right now it&#x27;s quite buggy on IE 11. I see a lot of flickering and it keeps scrolling to the top of the page.
r00fus将近 11 年前
Another point, I tend to rely on iCloud Keychain and 1Password to store card information.<p>Perhaps you should ensure it works with those data entry methods?
encoderer将近 11 年前
If you need something easy, nothing is better IMO than Stripe Checkout.<p>It&#x27;s insanely easy to integrate, and has an awesome (modal) payment form.
frik将近 11 年前
Mouse scrolling is broken on that page in IE 11.
jpeg_hero将近 11 年前
looks cool.<p>Any A&#x2F;B test results on conversion rates?
评论 #7847531 未加载
jmcejuela将近 11 年前
Love the design, thanks for this! The conversion rate must be analyzed but it definitely looks gorgeous.
reledi将近 11 年前
If anyone ends up doing some user testing with this form, please let us know the results!
graemian将近 11 年前
2nd coolest thing I ever saw, just behind Psy&#x27;s Gangnam Style :-)
izietto将近 11 年前
I like it a lot; one suggestion: increment the card colours contrast.
czbond将近 11 年前
Very Very cool!
kzanul将近 11 年前
This looks great and without using images - kudos!