src/Direct.php
Method register
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register($txType)
{
if (in_array(strtoupper($txType), $this->validTxTypes)) {
$txType = strtoupper($txType);
} else {
Method repeat
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function repeat()
{
$data = array(
'VPSProtocol' => $this->protocol,
'TxType' => "REPEAT",
Method authorise
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function authorise($VendorTxCode, $Amount, $RelatedVPSTxId, $RelatedVendorTxCode, $RelatedSecurityKey, $RelatedTxAuthNo, $Description = '')
Method refund
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function refund($VendorTxCode, $Amount, $RelatedVPSTxId, $RelatedVendorTxCode, $RelatedSecurityKey, $RelatedTxAuthNo, $Description = '')
Method release
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function release($VPSTxId, $SecurityKey, $VendorTxCode, $TxAuthNo, $ReleaseAmount)