Skip to content

Commit

Permalink
Merge pull request #170 from buckaroo-it/BA-259-Add-Pending-Approval-…
Browse files Browse the repository at this point in the history
…Response-Status

BA-259-Add-Pending-Approval-Response-Status
  • Loading branch information
vildanbina authored Apr 12, 2024
2 parents 9cb7e4c + aa94611 commit 418f56e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/Constants/ResponseStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ResponseStatus
public const BUCKAROO_STATUSCODE_PENDING_PROCESSING = '791';
public const BUCKAROO_STATUSCODE_WAITING_ON_CONSUMER = '792';
public const BUCKAROO_STATUSCODE_PAYMENT_ON_HOLD = '793';
public const BUCKAROO_STATUSCODE_PENDING_APPROVAL = '794';
public const BUCKAROO_STATUSCODE_CANCELLED_BY_USER = '890';
public const BUCKAROO_STATUSCODE_CANCELLED_BY_MERCHANT = '891';

Expand Down
8 changes: 8 additions & 0 deletions src/Transaction/Response/TransactionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ public function isRejected(): bool
return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_REJECTED;
}

/**
* @return bool
*/
public function isPendingApproval(): bool
{
return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_PENDING_APPROVAL;
}

/**
* @return bool
*/
Expand Down

0 comments on commit 418f56e

Please sign in to comment.