Hacker News new | past | comments | ask | show | jobs | submit login

Actually it's 1 line.

  <form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="pk_test_6pRNASCoBOKtIshFeQd4XMUh" data-amount="999" data-name="Stripe.com" data-description="Widget" data-image="https://stripe.com/img/documentation/checkout/marketplace.png" data-locale="auto" data-zip-code="true"></script></form>



There always has to be that guy...


Actually, it's 371 bytes.


and then there's this guy.


Actually it's 348 bytes.

    <form action=/your-server-side-code method=POST><script class=stripe-button data-amount=999 data-description=Widget data-image=https://stripe.com/img/documentation/checkout/marketplace.png data-key=pk_test_6pRNASCoBOKtIshFeQd4XMUh data-locale=auto data-name=Stripe.com data-zip-code=true src=https://checkout.stripe.com/checkout.js></script></form>


And then there's that guy from the CodeGolf StackExchange.


"I shaved off 3 bytes with eval() and a regex"


[flagged]


You can shave 4 bytes off of your comment by omitting the redundant "www." in your first link.


Maybe I like taking up more bytes with my comments ;-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: