You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first parameter of method **getAccountTransactionHistory** is filter object `\ThePay\ApiClient\Filter\TransactionFilter()`. All filter parameters are described in [Apiary](https://thepay.docs.apiary.io/#reference/0/merchant-level-resources/get-account-transaction-history).
15
+
**Parameters:**
16
+
-`$filter` - An instance of `\ThePay\ApiClient\Filter\TransactionFilter()`. (See online API documentation for all available filter options.)
17
+
-`$page`*(optional)* — Page number.
18
+
-`$limit`*(optional)* — Number of records per page.
14
19
15
-
Second and third parameter are used for pagination, where second is page number and third is number of records per page. Parameters are not required.
20
+
**Returns:**
16
21
17
-
You will get object `ThePay\ApiClient\Model\Collection\TransactionCollection`, which contains collection of transactions, current page number, number of records per page and helper methods.
22
+
A `ThePay\ApiClient\Model\Collection\TransactionCollection` object containing:
23
+
- A collection of transactions
24
+
- Current page number
25
+
- Number of records per page
26
+
- Includes helper methods such as `hasNextPage()` and `getPage()`
The only parameter of method **invalidatePayment** is a payment UID and the payment has to belong to the project which is configured in TheConfig.
13
+
**Parameters:**
14
+
-`$uid` - The unique identifier (UID) of the payment.
10
15
11
-
Method will return void if request was successful, otherwise it throws exception (For example if you are trying to invalidate payment that was already paid). Before invalidating payment is better to check its state:
16
+
The payment must belong to the project configured in `TheConfig`
12
17
18
+
**Returns:**
19
+
-`void` if the request was successful.
20
+
- Throws an exception if the payment cannot be invalidated (for example, if it was already paid).
21
+
22
+
**Best Practice: Check Payment State Before Invalidating**
0 commit comments