<?php
if (!defined("ROOT_PATH"))
{
	header("HTTP/1.1 403 Forbidden");
	exit;
}
class pjStripeSDKResponse
{
	protected $response;

	public function __construct($response)
	{
		$this->response = $response;
	}

	public function getError()
	{
		return isset($this->response['error']) ? $this->response['error'] : false;
	}

	public function isOK()
	{
		return !(isset($this->response['error']) && !empty($this->response['error']));
	}
}
?>
