This entry is part 5 of 8 in the series Processing Payments with Stripe

In my previous post in this series, I covered how you create an HTML form for securely handling payments via Stripe. As explained in that post, thanks to the Stripe.js library, the proper HTML, and a bit of JavaScript, you can easily and securely handle payments on your site without getting mired in the PCI compliance much. The secret is the Stripe.js library: it sends the customer’s payment information from the client to Stripe’s server and returns a token that Stripe associated with that payment information. Then, when the form is submitted, the token can be used by the PHP on your site to actually process the payment. The customer’s payment information, however, never touches your server. You get paid and the customer is protected.

In this post, I’ll walk through the necessary JavaScript to handle the client-side of that process. Note that this article assumes that you have read the previous article. And comfort with JavaScript and jQuery is required, too.

Continue Reading...

I haven’t written much about my book on the Yii framework on this blog in a while, so it’s high time for an update. As you may know, as of October 30, 2012, I began selling a self-published book titled, simply enough, “The Yii Book”. I’m selling the book in electronic formats—ePub, mobi, and PDF—to begin, and I’m selling it as I write it. I’ve been wanting to write a book about this excellent framework for some time, and thought such a book would be a good candidate for self-publishing, which I feel is an interesting little experiment.

Continue Reading...

A reader of my “Effortless E-commerce with PHP and MySQL” book took the time to recreate the first example in the book, called “Knowledge is Power”, using frameworks.

Continue Reading...
This entry is part 4 of 8 in the series Processing Payments with Stripe

Once you’ve created a Stripe account and have acquired an SSL certificate, you’re ready to write the form through which you’ll accept payments to be processed via Stripe. This is surprisingly simple to do, and completely secure when done right. In this post, I’ll explain what you need to do with your HTML.

Continue Reading...

An article I wrote titled “Creating a Shopping Cart Class using Object-Oriented Programming in PHP” was just published online by Peachpit Press. This article, which goes nicely with my “Advanced PHP and Object-Oriented Programming: Visual QuickPro Guide” book, explains how to use more recent features of PHP, such as the Standard PHP Library (SPL), to create a great, reusable shopping cart system. Just two classes will give you all the functionality you need!

Continue Reading...