StripeService
in package
Table of Contents
Properties
- $stripeSecretKey : string
Methods
- __construct() : mixed
- createCheckoutSession() : Session
- Create session checkout with stripe
Properties
$stripeSecretKey
private
string
$stripeSecretKey
Methods
__construct()
public
__construct(string $stripeSecretKey) : mixed
Parameters
- $stripeSecretKey : string
createCheckoutSession()
Create session checkout with stripe
public
createCheckoutSession(array<string|int, mixed> $linesItems, string $successUrl, string $cancelUrl) : Session
Parameters
- $linesItems : array<string|int, mixed>
- $successUrl : string
- $cancelUrl : string