fix: 🚑️ getStripeClient()
This commit is contained in:
parent
ef2c271257
commit
962ddb2fc3
|
@ -232,9 +232,9 @@ class PaymentController extends Controller
|
|||
*/
|
||||
public function StripePay(Request $request, CreditProduct $creditProduct)
|
||||
{
|
||||
|
||||
$stripeClient = $this->getStripeClient();
|
||||
|
||||
|
||||
$request = $stripeClient->checkout->sessions->create([
|
||||
'line_items' => [
|
||||
[
|
||||
|
@ -341,11 +341,11 @@ class PaymentController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* @return StripeClient
|
||||
* @return \Stripe\StripeClient
|
||||
*/
|
||||
protected function getStripeClient()
|
||||
{
|
||||
return new \Stripe\StripeClient($this->getStripeClient());
|
||||
return new \Stripe\StripeClient($this->getStripeSecret());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue