File: D:/HostingSpaces/brameda/brameda.nl/app/Komma/Shop/Payment/Clients/MultiSafepay/Object/Orders.php
<?php
namespace App\Komma\Shop\Payment\Clients\MultiSafepay\Object;
class Orders extends Core {
public $success;
public $data;
public function patch($body, $endpoint = '') {
$result = parent::patch(json_encode($body), $endpoint);
$this->success = $result->success;
$this->data = $result->data;
return $result;
}
public function get($type = 'orders', $id, $body = array(), $query_string = false) {
$result = parent::get($type, $id, $body, $query_string);
$this->success = $result->success;
$this->data = $result->data;
return $this->data;
}
public function post($body, $endpoint = 'orders') {
$result = parent::post(json_encode($body), $endpoint);
$this->success = $result->success;
$this->data = $result->data;
return $this->data;
}
public function getPaymentLink() {
return $this->data->payment_url;
}
}