Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/splittingred/paydirt

API for connecting to billing management systems (currently Chargify only)
https://github.com/splittingred/paydirt

Last synced: 8 days ago
JSON representation

API for connecting to billing management systems (currently Chargify only)

Awesome Lists containing this project

README

        

# Paydirt

A PSR-0 compliant PHP 5.3+ API for Chargify (and eventually other) billing libraries.

## Example


require 'Paydirt/Paydirt.php';
$customer = $paydirt->getObject('Customer',2528906);
echo $customer->get('email');

$customer->set('email','[email protected]');
if ($customer->save()) {
echo 'Saved! Hooray!';
} else {
echo 'We failed: '.print_r($customer->getErrors(),true);
}

## License

GPLv2 or later.