Skip to content

Commit

Permalink
Merge branch '14.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Dec 21, 2023
2 parents c86e01e + 0627ac3 commit aa8ec66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cashier.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@ public static function findBillable($stripeId)
*/
public static function stripe(array $options = [])
{
return new StripeClient(array_merge([
$config = array_merge([
'api_key' => $options['api_key'] ?? config('cashier.secret'),
'stripe_version' => static::STRIPE_VERSION,
'api_base' => static::$apiBaseUrl,
], $options));
], $options);

return app(StripeClient::class, ['config' => $config]);
}

/**
Expand Down

0 comments on commit aa8ec66

Please sign in to comment.