-
Notifications
You must be signed in to change notification settings - Fork 4
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 #12 from paynl/feature/PLUG-453
Plugin update
- Loading branch information
Showing
7 changed files
with
91 additions
and
87 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,28 @@ | ||
<?php | ||
|
||
class Pay_Api_Status extends Pay_Api | ||
{ | ||
|
||
protected $_version = 'v15'; | ||
protected $_controller = 'transaction'; | ||
protected $_action = 'status'; | ||
|
||
public function setTransactionId($transactionId) | ||
{ | ||
$this->_postData['transactionId'] = $transactionId; | ||
} | ||
|
||
protected function _getPostData() | ||
{ | ||
$data = parent::_getPostData(); | ||
if ($this->_apiToken == '') { | ||
throw new Pay_Exception('apiToken not set', 1); | ||
} else { | ||
$data['token'] = $this->_apiToken; | ||
} | ||
if (!isset($this->_postData['transactionId'])) { | ||
throw new Pay_Exception('transactionId is not set', 1); | ||
} | ||
return $data; | ||
} | ||
} |
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