diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index 74de7d224..289789b5a 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -57,7 +57,7 @@ class PaymentIntent extends ApiResource public function cancel($params = null, $options = null) { $url = $this->instanceUrl() . '/cancel'; - list($response, $opts) = $this->_request('post', $url); + list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } @@ -71,7 +71,7 @@ public function cancel($params = null, $options = null) public function capture($params = null, $options = null) { $url = $this->instanceUrl() . '/capture'; - list($response, $opts) = $this->_request('post', $url); + list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } @@ -85,7 +85,7 @@ public function capture($params = null, $options = null) public function confirm($params = null, $options = null) { $url = $this->instanceUrl() . '/confirm'; - list($response, $opts) = $this->_request('post', $url); + list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; }