Skip to content

fix: missed status from callback [SUSPENDED] for subscriptions #20

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 11 additions & 1 deletion src/Domain/TransactionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TransactionBase
const STATUS_VOIDED = 'Voided';
const STATUS_DECLINED = 'Declined';
const STATUS_REFUND_IN_PROCESSING = 'RefundInProcessing';
const STATUS_SUSPENDED = 'Suspended';

private $statusAllowed = array(
self::STATUS_CREATED,
Expand All @@ -41,6 +42,7 @@ class TransactionBase
self::STATUS_VOIDED,
self::STATUS_DECLINED,
self::STATUS_REFUND_IN_PROCESSING,
self::STATUS_SUSPENDED
);

const MERCHANT_TYPE_SALE = 'SALE';
Expand Down Expand Up @@ -419,4 +421,12 @@ public function isStatusRefundInProcessing()
{
return $this->status == self::STATUS_REFUND_IN_PROCESSING;
}
}

/**
* @return bool
*/
public function isStatusSuspended()
{
return $this->status == self::STATUS_SUSPENDED;
}
}