Skip to content

Commit

Permalink
add pending approval response status
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Apr 11, 2024
1 parent 9cb7e4c commit aa94611
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 aa94611

Please sign in to comment.