Skip to content

Commit

Permalink
Merge pull request #220 from mundipagg/hotfix/PAOP-110-allow-transact…
Browse files Browse the repository at this point in the history
…ion-status-waiting-capture

Allow transaction status waiting capture
  • Loading branch information
sfwill-dev authored Apr 27, 2021
2 parents e10d17f + 47067f4 commit fcbf8be
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mundipagg/ecommerce-module-core",
"description": "Core component for Mundipagg e-commerce platform modules.",
"license": "MIT",
"version": "2.8.4",
"version": "2.8.5",
"authors": [
{
"name": "MundiPagg Embeddables Team",
Expand Down
7 changes: 7 additions & 0 deletions src/Kernel/ValueObjects/TransactionStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ final class TransactionStatus extends AbstractValueObject
const EXPIRED = 'expired';
const PENDING_REVIEW = 'pending_review';
const ANALYZING = 'analyzing';
const WAITING_CAPTURE = 'waiting_capture';

/**
*
Expand Down Expand Up @@ -138,6 +139,12 @@ public static function analyzing()
return new self(self::ANALYZING);
}

public static function waitingCapture()
{
return new self(self::WAITING_CAPTURE);
}


/**
*
* @return string
Expand Down
Loading

0 comments on commit fcbf8be

Please sign in to comment.