Skip to content

Commit

Permalink
Merge pull request #71 from zyxxyzyxz/dev
Browse files Browse the repository at this point in the history
Added a dedicated function to check if a payment has chargebacks open.
  • Loading branch information
barryvdh authored Nov 14, 2019
2 parents d966a6a + bb1baa9 commit 167df00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Message/Response/FetchTransactionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ public function isPartialRefunded()
&& $this->data['amountRemaining']['value'] > 0;
}

/**
* @return boolean
*/
public function hasChargebacks()
{
return !empty($this->data['_links']['chargebacks']);
}

/**
* @return string|null
*/
Expand Down

0 comments on commit 167df00

Please sign in to comment.