testplacetopay / basicpayment
A basic payment client with a webservice of PlaceToPlay company
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/testplacetopay/basicpayment
Requires
- php: ^5.5 || ^7.0
- doctrine/cache: ^1.6
Requires (Dev)
- larapack/dd: 1.*
This package is not auto-updated.
Last update: 2025-12-21 02:44: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()