testplacetopay/basicpayment

A basic payment client with a webservice of PlaceToPlay company

v0.1.1 2016-09-14 03:44 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:51:13 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()