Skip to content

Commit

Permalink
Merge pull request #16 from ValerioOnGithub/master
Browse files Browse the repository at this point in the history
handle global error for refund
  • Loading branch information
VasuLief authored Nov 22, 2016
2 parents 0e8a94e + 79c0e29 commit 35362fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sofort/SofortLib/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ protected function _check_refund($i = 0)
*/
protected function _handleErrors()
{
parent::_handleErrors();

if (isset($this->_response['refunds'])) {
if (!isset($this->_response['refunds']['refund'][0])) {
$tmp = $this->_response['refunds']['refund'];
Expand Down

0 comments on commit 35362fe

Please sign in to comment.