Skip to content

A basic payment client with a webservice of PlaceToPlay company

Notifications You must be signed in to change notification settings

Caxvalencia/basicpayment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basicpayment

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

About

A basic payment client with a webservice of PlaceToPlay company

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages