instanceUrl() . '/cancel'; list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } /** * @param array|null $params * @param array|string|null $options * * @return SetupIntent The confirmed setup intent. */ public function confirm($params = null, $options = null) { $url = $this->instanceUrl() . '/confirm'; list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } }