Skip to content

Blog

The Very Simple PayPal Bridge

Just a quick note to say that I’m proud to announce the release of some more open source code, as part of my collaboration with Van Patten Media.

The Van Patten Media Labs site has all the details of the Very Simple PayPal Bridge — a simple way to connect to the PayPal API.

Interacting with the PayPal NVP API is something that a lot of e-commerce websites need to do. If you’re writing your own code for a bespoke e-commerce solution, rather than shoehorning in generic ‘Shopping Cart’ software, there is quite a lot to think about in order to communicate successfully with the API and provide a great payment experience for the site’s customers.

The Very Simple PayPal Bridge is a PHP class that, as the name suggests, provides a very simple interface for the PayPal NVP API.

In any situation where you need to interface more directly with the PayPal API, the VSPB provides a clean interface for the other layers of your code, dealing with all of the implementation details of sending requests via cURL, encoding and decoding the arguments, as well as offering full support for graceful error handling with PHP exceptions. It is great as a lower-level component of a wider PHP e-commerce solution.

For more information, see the post on Van Patten Media Labs and check out the code at GitHub!

New Year, New Site Design

A change of scenery here at my personal site has been long overdue, I think, so I’m pleased to usher in 2012 with a refresh of the site’s design!

A screenshot of the new site design

Keeping Things Compact

The first thing you’ll likely notice is the new compact, fixed header, with the navigation to the major parts of the site. It stays fixed in place, so you can always get back to any of those pages at any time. (It also swaps out the legacy image gradients for exciting new CSS3 gradients where available!)

Who Shot the Serif?

I have also moved away from Bitstream Charter/Georgia as the main font around the site, in favour of Helvetica Neue/Helvetica/Arial, combined with the existing accents of Gill Sans (where available!) for the headings. I think the site now has a more contemporary feel — and reads particularly well on devices where Helvetica Neue is available, like the iPad.

There is also a new webfont in use for the ‘Peter Upfold’ text in the header — Charis SIL (generously licensed under the SIL Open Font Licence).

Practising What I Preach

Cookie picture, by amagill -- http://www.flickr.com/photos/amagill/34754258/

As a strong proponent of users having control over their privacy online, I am pleased that the Do Not Track initiative, for indicating the user’s preferences about tracking technology on the web, has gained traction in many web browsers. Because I support the rights of users to make choices about the code running in their browsers and what information it is collecting about them, I took this opportunity to begin the implementation of Do Not Track support on my site.

» Read the rest of this post…