Skip to content

jjcc1421/placeToPay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

placeToPay

Place To pay package ##prerequisites ###Data base table Data table to register payments

//using illuminate migrations
Schema::create('payments', function (Blueprint $table) {
    $table->increments('id');
    $table->string('status');
    $table->string('transaction_id');
    $table->timestamps();
});

##Usage ###Connect

$auth = new \JJCaicedo\PlaceToPay\Models\Authentication(<Place to pay AuthId>, <Place to pay TranKey>, <Additional Data>|null);
\JJCaicedo\PlaceToPay\PlaceToPay::connect($auth, <Soap wdsl url>);

###Transaction Request Send Transaction request Check models classes

$transactionResponse = \JJCaicedo\PlaceToPay\PlaceToPay::createTransaction(<PSETransactionRequest>);//If it works Payment status Sent

###Get Transaction Info Send Transaction request Check models classes

$transactionInformation = \JJCaicedo\PlaceToPay\PlaceToPay::getTransactionInformation(<transactionId>); //If it works Payment status to $transactionInformation->transactionState;

About

Place To pay package

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages