Skip to content

Commit

Permalink
Moved Fetch Application Fee to the AbstractGateway.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabsfm committed Sep 18, 2019
1 parent 69193b2 commit f4b689c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
15 changes: 15 additions & 0 deletions src/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,21 @@ public function fetchBalanceTransaction(array $parameters = array())
return $this->createRequest('\Omnipay\Stripe\Message\FetchBalanceTransactionRequest', $parameters);
}

//
// Application Fees
// @link https://stripe.com/docs/api#application_fees
//

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

//
// Transfers
// @link https://stripe.com/docs/api#transfers
Expand Down
10 changes: 0 additions & 10 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,4 @@ public function completePurchase(array $parameters = array())
{
return $this->createRequest('\Omnipay\Stripe\Message\CompletePurchaseRequest', $parameters);
}

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

0 comments on commit f4b689c

Please sign in to comment.