2017 © Pedro Peláez
 

library placetoplay

PHP Wrapper for PlaceToPay integration.

image

deedee2025/placetoplay

PHP Wrapper for PlaceToPay integration.

  • Monday, September 26, 2016
  • by deedee2525
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PlacetoPay API Wrapper by Sebas Fernandez

PHP Wrapper for PlaceToPay API integration., (*1)

Installation

1) Make sure add composer.json file to project root directory 2) Run installation composer command composer require deedee2025/placetoplay 3) Load composer autoload file in you project as you prefer. e.g:
include_once __DIR__ . '/vendor/autoload.php';, (*2)

Usage

Authentication

Before start to use the wrapper's methods, you need authenticate via API:, (*3)

PlaceToPay::authenticate( $yourLogin, $yourTransactionKey );

Searching

You can get information about a transaction after authentication using the method below:, (*4)

$transaction = PlaceToPay::getTransactionInformation($transactionID);

Also, if you've done any request before, you can get all information about the latest requests using the method below:, (*5)

$info = PlaceToPay::getStoredTransactionsInfo();

NOTE: The last method uses PHP session to get the latest request IDs made., (*6)

Requesting

You can generate new transaction to PSE API using the method below:, (*7)

$request    = new PSETransactionRequest( $param );
$storeIds   = true; 
$result     = PlaceToPay::createTransaction( $request, $storeIds );

Also, you can call PlaceToPay::printRequestForm( '/' ) method to print an automatic form to make the request and replacing $params argument by $_POST to pass the form's values to the request., (*8)

The Versions

26/09 2016

dev-master

9999999-dev

PHP Wrapper for PlaceToPay integration.

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Sebas Fernandez

placetopay pse

26/09 2016

1.0.0

1.0.0.0

PHP Wrapper for PlaceToPay integration.

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Sebas Fernandez

placetopay pse