first commit
This commit is contained in:
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action.php
vendored
Normal file
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestAction extends Request
|
||||
{
|
||||
|
||||
public function execute($callback = null, $result_from_prev = [])
|
||||
{
|
||||
try {
|
||||
foreach ($result_from_prev as $k => $v) {
|
||||
$this->_data[$k] = $v;
|
||||
}
|
||||
$data = $this->validate();
|
||||
|
||||
return $this->_exec_post(Config::$PaymentOperationActionUrl, $data, $callback);
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
public function _get_data_from_prev($result_from_prev)
|
||||
{
|
||||
$this->_data["merchantId"] = $result_from_prev["merchantId"];
|
||||
$this->_data["token"] = $result_from_prev["token"];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user