PHP code example of testplacetopay / basicpayment

1. Go to this page and download the library: Download testplacetopay/basicpayment library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

testplacetopay / basicpayment example snippets


composer 

$basicPayment = new TestPlaceToPay\BasicPayment\BasicPayment([
    'DEF_SERVICE' => "https://test.placetopay.com/soap/pse/?wsdl",
    'CACHE_FOLDER' => dirname( __FILE__ ) . '/tmp',
    'LOGIN' => '---LOGIN---',
    'TRANKEY' => '--TRANKEY--'
]);

[
    '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()