Class FetchTransactionsRequest
Viva Payments (REST) Fetch Transactions Request
This method allows you to obtain:
- Details for all transactions for a given Payment Order.
- A list of all transactions that occurred on a given day.
Example
Possible parameters are:
- date -- the date on which the transaction was made.
- clearanceDate -- the date on which the transaction was cleared.
- transactionReference -- the ID of a transaction, as returned by the GET parameter when redirecting a customer back to your site. This will be a 36 character UUID.
- transactionId -- the Order Code which will be the 12 or 16 digit code returned from a purchase() request.
$transaction = $gateway->fetchTransactions(array( 'transactionReference' => $transaction_id, )); $response = $transaction->send(); if ($response->isSuccessful()) { $transactionList = $response->getData(); } else { echo "Fetch transactions failed.\n"; echo "Error code == " . $response->getCode() . "\n"; echo "Error message == " . $response->getMessage() . "\n"; }
- Omnipay\Common\Message\AbstractRequest implements Omnipay\Common\Message\RequestInterface
- Omnipay\VivaPayments\Message\AbstractRestRequest
- Omnipay\VivaPayments\Message\FetchTransactionsRequest
Namespace: Omnipay\VivaPayments\Message
See:
Link: https://github.com/VivaPayments/API/wiki
Link: https://www.vivawallet.com/en-us/company
Link: https://github.com/VivaPayments/API/wiki/GetTransactions
Located at Message/FetchTransactionsRequest.php
See:
Omnipay\VivaPayments\RestGateway
Link: https://github.com/VivaPayments/API/wiki
Link: https://www.vivawallet.com/en-us/company
Link: https://github.com/VivaPayments/API/wiki/GetTransactions
Located at Message/FetchTransactionsRequest.php
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
mixed
|
|
protected
string
|
|
protected
string
|
$liveEndpoint,
$testEndpoint
|
$httpClient,
$httpRequest,
$negativeAmountAllowed,
$parameters,
$response,
$zeroAmountAllowed
|