https://github.com/pencepay/pencepay-php
Pencepay PHP library http://pencepay.com/docs/php
https://github.com/pencepay/pencepay-php
payment-gateway payment-processing
Last synced: 24 days ago
JSON representation
Pencepay PHP library http://pencepay.com/docs/php
- Host: GitHub
- URL: https://github.com/pencepay/pencepay-php
- Owner: pencepay
- License: mit
- Created: 2014-12-05T17:12:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T14:30:55.000Z (over 8 years ago)
- Last Synced: 2025-07-27T15:44:33.611Z (11 months ago)
- Topics: payment-gateway, payment-processing
- Language: PHP
- Size: 34.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pencepay PHP Library
This is a server-side library for Pencepay gateway. You can [signup](https://pencepay.com) to Pencepay and then use this library to integrate.
## Dependencies
PHP version >= 5.4 is required.
The following PHP extensions are required:
* curl
* dom
* hash
* openssl
## Installation
You can install this library via [Composer](http://getcomposer.org), by adding this to your composer.json:
{
"require": {
"pencepay/pencepay-php": "1.*"
}
}
To install, run the command:
composer.phar install
If you wish to use the library without Composer, you can install it manually
git clone https://github.com/pencepay/pencepay-php
## Using the Pencepay Library
If you are using Composer, include the Library in your project with:
require_once('vendor/autoload.php');
or if you are not using Composer, just require the library directly:
require_once('/path/to/pencepay-php/lib/Pencepay.php');
```php
Pencepay_Context::setPublicKey("your-public-key");
Pencepay_Context::setSecretKey("your-secret-key");
$transaction = Pencepay_Transaction::create(
Pencepay_Request_Transaction::build()
->orderId('123456')
->amount('10.99')
->currencyCode('EUR')
->creditCard()
->cardholderName('John Hancock')
->number('4350100010001002')
->cvv('313')
->expiryMonth(12)
->expiryYear(2016)
->done()
);
print_r($transaction);
```
## Documentation
* See the [Full Library documentation](https://pencepay.com/docs)
## License
See the LICENSE file.
## TODO
Upload tests.