class Transact extends SlimCD implements Transact

Class Transact.

Properties

string $transactionUrl Transaction URL. from SlimCD
string $statsURL Stats URL. from SlimCD
bool $debug Whether or not debug mode is on. Default is off. from SlimCD
protected $send Data to send. from SlimCD
protected $receive Data that is received. from SlimCD
protected int $defaultTimeout Curl timeout. from SlimCD
protected bool $verifyPeer Curl Verify Peer. from SlimCD

Methods

object
buildError($url, $errorMessage)

Create an error using the URL and error message.

from SlimCD
mixed|object
httpPost($urlString, $timeout, $nameValueArray)

Use curl to POST the request to SlimCd.

from SlimCD
int
getTimeout($timeout)

Get current timeout value from property.

from SlimCD
string
getVersion()

Get the current version of the client.

from SlimCD
setVerifyPeer($verifyPeer)

You can disable verify peer, but it is not recommended.

from SlimCD
mixed
closeBatch(CloseBatchRequest $request, bool $timeout = false)

Closes the current batch of transactions on SLIM CD’s servers by releasing them to the processor.

mixed
processTransaction(ProcessTransactionRequest $request, bool $timeout = false)

No description

Details

in SlimCD at line 73
protected object buildError($url, $errorMessage)

Create an error using the URL and error message.

Parameters

$url
$errorMessage

Return Value

object

in SlimCD at line 100
protected mixed|object httpPost($urlString, $timeout, $nameValueArray)

Use curl to POST the request to SlimCd.

Parameters

$urlString
$timeout
$nameValueArray

Return Value

mixed|object

Exceptions

Exception

in SlimCD at line 181
protected int getTimeout($timeout)

Get current timeout value from property.

Parameters

$timeout

Return Value

int

in SlimCD at line 197
string getVersion()

Get the current version of the client.

Return Value

string

in SlimCD at line 207
setVerifyPeer($verifyPeer)

You can disable verify peer, but it is not recommended.

Parameters

$verifyPeer

at line 28
mixed closeBatch(CloseBatchRequest $request, bool $timeout = false)

Closes the current batch of transactions on SLIM CD’s servers by releasing them to the processor.

Transactions processed through SLIM CD are stored in batches. These transactions will not be funded to the merchant until the batch is closed . After closing a batch you can no longer perform VOID, TIPEDIT, or UPDATE transactions against a previous transaction included in the batch.

Parameters

CloseBatchRequest $request
bool $timeout

Return Value

mixed

Exceptions

Exception

at line 43
mixed processTransaction(ProcessTransactionRequest $request, bool $timeout = false)

Parameters

ProcessTransactionRequest $request
bool $timeout

Return Value

mixed

Exceptions

Exception