Getting a fatal Error call to unidentified method Pass::_createpass()
<p>Can someone please help. I am getting a fatal error on the following PHP script.</p>

<p>I am getting an error "unidentified method Pass::_createpass()" whick relates to the second last line of the code below.</p>

<pre><code>&lt;?php

 $engine = Pass::start('xxxxxxxxxxxxxxxx');
 $pass = $engine-&gt;createPassFromTemplate(xxxxxxxxxxxxxx);
 $engine-&gt;redirectToPass($pass);

if (!function_exists('curl_init')) {
    throw new Exception('Pass needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
    throw new Exception('Pass needs the JSON PHP extension.');
}

 $engine = Pass::start($appKey);
 $values = array(
    'first' =&gt; 'John',
    'last' =&gt; 'Platinum',
 );

 $images = array(
    'thumbnail' =&gt; 'image1.jpg'
 );

 $pass = $engine-&gt;createPassFromTemplate(5688667418918912, $values, $images);
 $passData = $engine-&gt;downloadPass($pass);
 $engine-&gt;redirectToPass($pass);

class Pass
{

    private $_appKey = null;

    private $_endpoint = 'https://pass.center/api/v1';

    private $_debug = false;

    private static $_instance = null;

    private static $_imageTypes = array('icon', 'logo', 'strip', 'thumbnail', 'background', 'footer');

    const VERSION = '0.5';

    const USER_AGENT = 'PassSDK-PHP/0.5';

    public function __construct($appKey = null, $endpoint = null, $debug = false)
    {
        if (is_null($appKey)) {
            throw new Exception('App Key required');
        }
        $this-&gt;_appKey = $appKey;
        if ($endpoint !== null) {
            $this-&gt;_endpoint = $endpoint;
        }
        $this-&gt;_debug = $debug;
    }

    public static function start($appKey = null, $endpoint = null, $debug = false)
    {
        if (self::$_instance == null) {
            self::$_instance = new self($appKey, $endpoint, $debug);
        }
        return self::$_instance;
    }

    public function createPassFromTemplate($templateId, $values = array(), $images = array())
    {
        $resource = sprintf("https://xxxxxxx/api/v1/templates/names/Test/pass", $templateId);
        return $this-&gt;_createPass($resource, $values, $images);
    }
}
</code></pre>

<p>I hope someone can help me as I am not familiar with Functions PHP.</p>

<p>Thanks All</p>

<p>Rob</p>