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 get($endpoint = 'gateways', $type = '', $body = array(), $query_string = false) { $result = parent::get($endpoint, $type, json_encode($body), $query_string); $this->success = $result->success; $this->data = $result->data; return $this->data; }
public function get($endpoint = 'issuers', $type = 'ideal', $body = array(), $query_string = false) { $result = parent::get($endpoint, $type, $body, $query_string); $this->success = $result->success; $this->data = $result->data; return $this->data; }