https://github.com/splittingred/paydirt
API for connecting to billing management systems (currently Chargify only)
https://github.com/splittingred/paydirt
Last synced: about 1 year ago
JSON representation
API for connecting to billing management systems (currently Chargify only)
- Host: GitHub
- URL: https://github.com/splittingred/paydirt
- Owner: splittingred
- Created: 2012-11-27T18:15:32.000Z (over 13 years ago)
- Default Branch: develop
- Last Pushed: 2012-11-28T05:11:40.000Z (over 13 years ago)
- Last Synced: 2025-02-10T14:52:01.140Z (over 1 year ago)
- Language: PHP
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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','foo@bar.com');
if ($customer->save()) {
echo 'Saved! Hooray!';
} else {
echo 'We failed: '.print_r($customer->getErrors(),true);
}
## License
GPLv2 or later.