Skip to content

Commit d22f0e0

Browse files
committed
Adds fetchTransaction
As a proxy to `FindRequest`. Functionality already exists with `FindRequest` but `fetchTransaction` method provides interface consistency with other gateways.
1 parent 1b55399 commit d22f0e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Gateway.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,13 @@ public function void(array $parameters = array())
229229
{
230230
return $this->createRequest('\Omnipay\Braintree\Message\VoidRequest', $parameters);
231231
}
232+
233+
/**
234+
* @param array $parameters
235+
* @return Message\FindRequest
236+
*/
237+
public function fetchTransaction(array $parameters = array())
238+
{
239+
return $this->createRequest('\Omnipay\Braintree\Message\FindRequest', $parameters);
240+
}
232241
}

0 commit comments

Comments
 (0)