Skip to content

Commit

Permalink
Merge pull request #539 from stripe/remi-fix-payment-intents-methods-…
Browse files Browse the repository at this point in the history
…params

Fix PaymentIntent methods to properly handle the params
  • Loading branch information
remi-stripe authored Oct 17, 2018
2 parents bf254bc + 00cf390 commit ff790c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit ff790c3

Please sign in to comment.