GDS\Gateway\RESTv1::beginTransaction PHP Method

beginTransaction() public method

POST /v1/projects/{projectId}:beginTransaction
public beginTransaction ( boolean $bol_cross_group = FALSE ) : null
$bol_cross_group boolean
return null
    public function beginTransaction($bol_cross_group = FALSE)
    {
        if ($bol_cross_group) {
            throw new \Exception("Cross group transactions not supported over REST API v1");
        }
        $this->executePostRequest('beginTransaction');
        if (isset($this->obj_last_response->transaction)) {
            return $this->obj_last_response->transaction;
        }
        return null;
    }