2017 © Pedro Peláez
 

library pencepay-php

Pencepay PHP Library

image

pencepay/pencepay-php

Pencepay PHP Library

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Pencepay PHP Library

This is a server-side library for Pencepay gateway. You can signup to Pencepay and then use this library to integrate., (*1)

Dependencies

PHP version >= 5.4 is required., (*2)

The following PHP extensions are required:, (*3)

  • curl
  • dom
  • hash
  • openssl

Installation

You can install this library via Composer, by adding this to your composer.json:, (*4)

{
  "require": {
    "pencepay/pencepay-php": "1.*"
  }
}

To install, run the command:, (*5)

composer.phar install

If you wish to use the library without Composer, you can install it manually, (*6)

git clone https://github.com/pencepay/pencepay-php

Using the Pencepay Library

If you are using Composer, include the Library in your project with:, (*7)

require_once('vendor/autoload.php');

or if you are not using Composer, just require the library directly:, (*8)

require_once('/path/to/pencepay-php/lib/Pencepay.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

License

See the LICENSE file., (*9)

TODO

Upload tests., (*10)

The Versions

08/12 2017

dev-master

9999999-dev

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *
  • php >=5.4

 

The Development Requires

payments payment processing credit cards

25/04 2017

v1.0.5

1.0.5.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

25/04 2017

v1.0.6

1.0.6.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

14/03 2015

v1.0.4

1.0.4.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2.1
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

01/01 2015

v1.0.2

1.0.2.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2.1
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

01/01 2015

v1.0.3

1.0.3.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2.1
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

23/12 2014

v1.0.1

1.0.1.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2.1
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards

05/12 2014

v1.0.0

1.0.0.0

Pencepay PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2.1
  • ext-curl *
  • ext-dom *
  • ext-hash *
  • ext-openssl *

 

The Development Requires

payments payment processing credit cards