Transact
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
Use curl to POST the request to SlimCd.
Closes the current batch of transactions on SLIM CD’s servers by releasing them to the processor.
Details
in SlimCD at line 73
protected object
buildError($url, $errorMessage)
Create an error using the URL and error message.
in SlimCD at line 100
protected mixed|object
httpPost($urlString, $timeout, $nameValueArray)
Use curl to POST the request to SlimCd.
in SlimCD at line 181
protected int
getTimeout($timeout)
Get current timeout value from property.
in SlimCD at line 197
string
getVersion()
Get the current version of the client.
in SlimCD at line 207
setVerifyPeer($verifyPeer)
You can disable verify peer, but it is not recommended.
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.