-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from sergej-koscejev/master
Add interfaces for incoming notifications
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Omnipay\Common\Message; | ||
|
||
/** | ||
* Incoming notification | ||
*/ | ||
interface NotificationInterface extends MessageInterface | ||
{ | ||
const STATUS_COMPLETED = 'completed'; | ||
const STATUS_PENDING = 'pending'; | ||
const STATUS_FAILED = 'failed'; | ||
|
||
/** | ||
* Gateway Reference | ||
* | ||
* @return string A reference provided by the gateway to represent this transaction | ||
*/ | ||
public function getTransactionReference(); | ||
|
||
/** | ||
* Was the transaction successful? | ||
* | ||
* @return string Transaction status, one of {@see STATUS_COMPLETED}, {@see #STATUS_PENDING}, | ||
* or {@see #STATUS_FAILED}. | ||
*/ | ||
public function getTransactionStatus(); | ||
|
||
/** | ||
* Response Message | ||
* | ||
* @return string A response message from the payment gateway | ||
*/ | ||
public function getMessage(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters