File: D:/HostingSpaces/SBogers95/rentman.io/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, $id, $body = [], $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;
}
}