Skip to content

Commit

Permalink
createSetupIntent add customer stripe_id option (#1545)
Browse files Browse the repository at this point in the history
* createSetupIntent add customer stripe_id option

* Update ManagesPaymentMethods.php fix linting issue
  • Loading branch information
clementmas authored Jul 4, 2023
1 parent 29a131a commit 8b2d75b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Concerns/ManagesPaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ trait ManagesPaymentMethods
*/
public function createSetupIntent(array $options = [])
{
if ($this->hasStripeId()) {
$options['customer'] = $this->stripe_id;
}

return $this->stripe()->setupIntents->create($options);
}

Expand Down

0 comments on commit 8b2d75b

Please sign in to comment.