Skip to content

Commit

Permalink
Adds fetchTransaction
Browse files Browse the repository at this point in the history
As a proxy to `FindRequest`. Functionality already exists with `FindRequest` but `fetchTransaction` method provides interface consistency with other gateways.
  • Loading branch information
drewm committed Jan 2, 2016
1 parent 1b55399 commit d22f0e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,13 @@ public function void(array $parameters = array())
{
return $this->createRequest('\Omnipay\Braintree\Message\VoidRequest', $parameters);
}

/**
* @param array $parameters
* @return Message\FindRequest
*/
public function fetchTransaction(array $parameters = array())
{
return $this->createRequest('\Omnipay\Braintree\Message\FindRequest', $parameters);
}
}

0 comments on commit d22f0e0

Please sign in to comment.