About Chris Morrell

I am a Philadelphia web designer and developer who focuses on PHP development and usable design. I am also the Director of IT for the International Association of Certified Home Inspectors.

Please Note: My site fell victim to a Wordpress security flaw a few weeks ago, and I'm just getting everything back to normal. Please bear with me.

I am currently not accepting any new clients.

Other Sites/Clients

Contact Me

If you need to get in touch with me, my name is Chris and my domain name is cmorrell.com. Think about it.

Galahad Payment Layer

The Galahad Payment Layer provides a unified API for authorizing and capturing credit card payments through a number of gateways. Currently Authorize.net is the only supported gateway, but others will be developed over time. Galahad PL is in very early stages of development, and should not be used on production sites. Here’s a simple example of its use:

$gateway = new Galahad_Gateway_AuthorizeNet($login, $tranKey);
$card = new Galahad_CreditCard('4222222222222', 4, 10);
$transaction = new Galahad_Gateway_Transaction(null, 2.00, $card, 'Description of $2 purchase');
$response = $gateway->capture($transaction, true);
if ($response->isApproved()) {
    echo 'Approved';
} else {
    echo 'Declined';
}

Galahad PL requires PHP5 with cURL and OpenSSL installed.

Please note that this project is currently being refactored and integrated with the Galahad Framework Extension.  To see the latest code, check out the Galahad Framework Extension on GitHub.

Or you can download the original project:

Galahad Payment Layer [47.26 KB]

No Comments (Respond Now) »

Leave a Reply

Additional comments powered by BackType

Comments & Trackbacks

You can leave a response, or trackback from your own site. Follow any responses to this entry through the RSS 2.0 feed.

@inxilpro

  • Wet Hot American Summer at World Cafe Live. It's free and dead. 2 days ago
  • Would really like something that combines Twitter starred + Google Reader starred/liked + Delicious.com. Does such a thing exist? 6 days ago
  • Also, how can OS X be so rock solid and other Apple-developed software be so buggy? 1 week ago
  • More updates...
Copyright © Chris Morrell, Powered by WordPress, Entry RSS Feed / Comment RSS Feed