@@ -21,14 +21,14 @@ public function create(array $payload)
2121 ['json ' => $ payload ],
2222 [
2323 'Content-Type ' => 'application/json ' ,
24- 'Authorization ' =>
25- $ this ->client ->getTokenType () .
26- ' ' .
24+ 'Authorization ' =>
25+ $ this ->client ->getTokenType () .
26+ ' ' .
2727 $ this ->client ->getAccessToken ()
2828 ]
2929 );
3030 }
31-
31+
3232 /**
3333 * @param array $payload
3434 *
@@ -38,18 +38,18 @@ public function details(array $payload)
3838 {
3939 return $ this ->client ->request (
4040 self ::GET ,
41- Routes::payment ()->details ($ payload ['id ' ]),
41+ Routes::payment ()->details ($ payload ['id ' ], $ payload [ ' date ' ] ?? null ),
4242 ['json ' => $ payload ],
4343 [
4444 'Content-Type ' => "application/json " ,
45- 'Authorization ' =>
46- $ this ->client ->getTokenType () .
47- ' ' .
45+ 'Authorization ' =>
46+ $ this ->client ->getTokenType () .
47+ ' ' .
4848 $ this ->client ->getAccessToken ()
4949 ]
5050 );
5151 }
52-
52+
5353 /**
5454 * @param array $payload
5555 *
@@ -63,9 +63,9 @@ public function cancel(array $payload)
6363 ['json ' => $ payload ],
6464 [
6565 'Content-Type ' => "application/json " ,
66- 'Authorization ' =>
67- $ this ->client ->getTokenType () .
68- ' ' .
66+ 'Authorization ' =>
67+ $ this ->client ->getTokenType () .
68+ ' ' .
6969 $ this ->client ->getAccessToken ()
7070 ]
7171 );
@@ -84,9 +84,9 @@ public function capture(array $payload)
8484 ['json ' => $ payload ],
8585 [
8686 'Content-Type ' => "application/json " ,
87- 'Authorization ' =>
88- $ this ->client ->getTokenType () .
89- ' ' .
87+ 'Authorization ' =>
88+ $ this ->client ->getTokenType () .
89+ ' ' .
9090 $ this ->client ->getAccessToken ()
9191 ]
9292 );
@@ -113,4 +113,3 @@ public function validate(array $payload)
113113 );
114114 }
115115}
116-
0 commit comments