Blesta 3.0: Merchant Gateways (video)

June 28, 2012 | Posted by Cody


In this developer commentary, I give a quick tutorial on creating a merchant gateway that supports credit card payments.

As you’ll see in the video, I’ve created a demo gateway to help streamline the process. This, and other payment gateway demos will be made available to developers at the launch of alpha, along with our detailed developer documentation.

We’re really excited about the payment gateway architecture, and after watching this tutorial I hope you will be too. If you’d like to learn more about why the gateway system is designed the way it is, read my post on Designing a Modular System.

Tags: | | | | |

Blesta 3.0: RESTful API (video)

January 11, 2012 | Posted by Cody


In this developer commentary, I give a behind the scenes look at the API in version 3.

What we’ve done is create a controller to make available all of the various models in a RESTful manner, using the four primary HTTP verbs (GET, POST, PUT, DELETE). All this controller needs to do is handle parameter passing and output formatting, which we’ve done here in just 342 lines. Available output formats are JSON, XML, and PHP serialization, but more may be added in the future.

The API supports an unlimited number of users, so you can delegate users for specific tasks. In addition, the API may be extended by plugins. The format for those requests is /api/pluginName.modelName/method.format.

Currently the API supports HTTP Basic authentication, but we’re looking to add Digest authentication in the future as well. In addition, we’ve added command line interface (CLI) support which is bound to make API development easier for you programmers out there.

Click the icon in the bottom right of the video player to go full screen.

Tags: | | | | | |

Blesta 3.0: AJAX events with browser state updates

September 13, 2011 | Posted by Cody


In this developer commentary, I give an in depth look at how AJAX events are handled in version 3 and how you can include them in your own widgets or plugins.

The technology employed here allows us to seamlessly update the state of the browser when performing AJAX requests. This permits the user to navigate using the browser’s back and forward buttons while at the same time offering backward compatibility with normal requests for the same resource.

The context of this video is technical in nature and best suited for viewers with a strong understanding of PHP, minPHP, javascript, and jQuery.

Click the icon in the bottom right of the video player to go full screen.

Tags: | | | | |