A basic payment client with a webservice of PlaceToPlay company
For install:
composer require testplacetopay/basicpayment
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' => ''
];
$basicPayment->createTransaction( $req )
$basicPayment->getTransactionInformation( $transactionID )
$basicPayment->getBankList()
$basicPayment->getDatas()
$basicPayment->getError()