testplacetopay / basicpayment
A basic payment client with a webservice of PlaceToPlay company
v0.1.1
2016-09-14 03:44 UTC
Requires
- php: ^5.5 || ^7.0
- doctrine/cache: ^1.6
Requires (Dev)
- larapack/dd: 1.*
This package is not auto-updated.
Last update: 2026-03-15 03:50:57 UTC
README
A basic payment client with a webservice of PlaceToPlay company
Installing
For install:
composer require testplacetopay/basicpayment
Getting started
Create a new instance of BasicPayment of the namespace 'TestPlaceToPay\BasicPayment' and add configuraction parameters
$basicPayment = new TestPlaceToPay\BasicPayment\BasicPayment([ 'DEF_SERVICE' => "https://test.placetopay.com/soap/pse/?wsdl", 'CACHE_FOLDER' => dirname( __FILE__ ) . '/tmp', 'LOGIN' => '---LOGIN---', 'TRANKEY' => '--TRANKEY--' ]);
Default values for the config parameters
[
'BANK_LIST_TIME_LIFE' => 60 * 60 * 24,
'DEF_SERVICE' => 'https://test.placetopay.com/soap/pse/?wsdl',
'CACHE_DRIVER' => '\Doctrine\Common\Cache\FilesystemCache',
'CACHE_FOLDER' => './tmp',
'LOGIN' => '',
'TRANKEY' => ''
];
Methods
$basicPayment->createTransaction( $req ) $basicPayment->getTransactionInformation( $transactionID ) $basicPayment->getBankList() $basicPayment->getDatas() $basicPayment->getError()