2017 © Pedro Peláez
 

library placetopay

PHP library to make a basic test pay with PlaceToPay

image

oveland/placetopay

PHP library to make a basic test pay with PlaceToPay

  • Tuesday, December 27, 2016
  • by oveland
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Oveland PlaceToPay Library


Installation

Install via composer, (*1)

$ composer require oveland/placetopay, (*2)

Or include on composer.json file:, (*3)

"require": {
    "oveland/placetopay": "^1.0"
}

How to use

use Oveland\Placetopay\PlaceToPay;

...

$params = [
    'payer' => [
        'documentType' => 'CC',
        'document' => '1061743074',
        'firstName' => 'Oscar',
        'lastName' => 'Velásquez Andrade',
        'company' => 'Oveland',
        'emailAddress' => 'oscarivelan@gmail.co',
        'address' => 'Cra 10 23 N 55',
        'city' => 'Popayán',
        'province' => 'Cauca',
        'country' => 'CO',
        'phone' => 'null',
        'mobile' => '3145224313'
    ],
    'buyer' => null,
    'shipping' => null,
    'bank' => [
        'bankCode' => 1022,
        'bankInterface' => 0,
        'returnURL' => 'http://oveland.placetopay/',
        'reference' => uniqid(rand(), true),
        'description' => 'Pago Básico Oveland',
        'language' => 'ES',
        'currency' => 'COP',
        'totalAmount' => 10,
        'taxAmount' => 0,
        'devolutionBase' => 0,
        'tipAmount' => 0
    ],
    'additionalData' => [
        [
            'name' => 'foo',
            'value' => 'bar'
        ],
        [
            'name' => 'foo_1',
            'value' => 'bar_1'
        ]
    ]
];

$placetopay = new PlaceToPay();

$transaction = $placetopay->createTransaction($params);
$status = $placetopay->getTransactionInformation($transaction->getTransactionID());


Methods

Bank List:, (*4)

Get array of bank list: $placetopay->getBankList();, (*5)


Transaction:, (*6)

Get return code: $transaction->getReturnCode();, (*7)

Get bank url redirect: $transaction->getBankURL();, (*8)

Get trazability code: $transaction->getTrazabilityCode();, (*9)

Get transaction cycle: $transaction->getTransactionCycle();, (*10)

Get transaction ID: $transaction->getTransactionID();, (*11)

Get session ID: $transaction->getSessionID();, (*12)

Get bank currency: $transaction->getBankCurrency();, (*13)

Get bank factor: $transaction->getBankFactor();, (*14)

Get response code: $transaction->getResponseCode();, (*15)

Get response reason code: $transaction->getResponseReasonCode();, (*16)

Get response reason text: $transaction->getResponseReasonText();, (*17)

Get array of all data: $transaction->getData();, (*18)


Status:, (*19)

Get transaction ID: $status->getTransactionID();, (*20)

Get session ID: $status->getSessionID();, (*21)

Get reference: $status->getReference();, (*22)

Get request date: $status->getRequestDate();, (*23)

Get trazability code: $status->getTrazabilityCode();, (*24)

Get bank process date: $status->getBankProcessDate();, (*25)

Get bank on test: $status->getOnTest();, (*26)

Get return code: $status->getReturnCode();, (*27)

Get trazability code: $status->getTrazabilityCode();, (*28)

Get transaction cycle: $status->getTransactionCycle();, (*29)

Get transaction state: $status->getTransactionState();, (*30)

Get response code: $status->getResponseCode();, (*31)

Get response reason code: $status->getResponseReasonCode();, (*32)

Get response reason text: $status->getResponseReasonText();, (*33)

Get array of all data: $status->getData();, (*34)

Example

See Laravel project that implements the PlaceToPay Library., (*35)

Please try the Live demo, (*36)

The Versions

27/12 2016

dev-master

9999999-dev

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

27/12 2016

1.2.0

1.2.0.0

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

27/12 2016

dev-develop

dev-develop

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

27/12 2016

1.1.1

1.1.1.0

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

26/12 2016

1.1

1.1.0.0

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

26/12 2016

1.0

1.0.0.0

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Velásquez

25/12 2016

0.1

0.1.0.0

PHP library to make a basic test pay with PlaceToPay

  Sources   Download

MIT

The Development Requires

by Oscar Velásquez