forked from tpay-com/tpay-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransactionRefundStatus.php
More file actions
42 lines (32 loc) · 947 Bytes
/
TransactionRefundStatus.php
File metadata and controls
42 lines (32 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* Created by tpay.com
*/
namespace tpayLibs\examples;
use tpayLibs\src\_class_tpay\Reports\BasicReports;
use tpayLibs\src\_class_tpay\Utilities\TException;
include_once 'config.php';
include_once 'loader.php';
class TransactionRefundStatus extends BasicReports
{
const TRID = 'TR-BRA-KGZK0X';
public function __construct()
{
$this->merchantSecret = 'demo';
$this->merchantId = 1010;
$this->trApiKey = '75f86137a6635df826e3efe2e66f7c9a946fdde1';
$this->trApiPass = 'p@$$w0rd#@!';
parent::__construct();
}
public function getTransactionRefundsStatuses()
{
try {
$this->transactionID = static::TRID;
$result = $this->transactionRefundStatus();
var_dump($result);
} catch (TException $e) {
var_dump($e->getMessage());
}
}
}
(new TransactionRefundStatus())->getTransactionRefundsStatuses();