Skip to content

Commit e890cbb

Browse files
committed
Added support for fetching payments with an {orderId}/{dateStr} syntax
1 parent d052e5c commit e890cbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public static function payment()
1717
return Client::LATEST_VERSION_API . 'payments';
1818
};
1919

20-
$anonymous->details = static function ($id) {
21-
return Client::VERSION_API . "payments/$id";
20+
$anonymous->details = static function ($id, $date) {
21+
return Client::VERSION_API . "payments/$id" . ($date ? "/$date" : '');
2222
};
2323

2424
$anonymous->cancel = static function ($id) {

0 commit comments

Comments
 (0)