Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BA-259-Add-Pending-Approval-Response-Status #170

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading