Marketplace
Marketplace
- Full name:
\kennethormandy\marketplace\Marketplace
- Parent class:
Plugin
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
EDITION_LITE | public | 'lite' |
Properties
hasCpSettings
public bool $hasCpSettings
schemaVersion
public string $schemaVersion
preferSeparateTransfers
Prefer Separate Transfers
public bool $preferSeparateTransfers
Whether or not to prefer that Stripe use “separate charges and transfers,” rather than
the “short hand” application_fee_amount
approach. This is only possible on carts
with a single payee, so by default Marketplace prefers separate transfers on all transactions.
plugin
public static \kennethormandy\marketplace\Plugin $plugin
- This property is static.
Methods
editions
public static editions(): array
- This method is static.
init
public init(): mixed
log
Log wrapper
public log(string $msg, array $params = [], string $level = 'info'): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$msg | string | |
$params | array | |
$level | string |
setError
Set an error using Auth’s flash messages, to provide Marketplace- or Stripe-specific errors.
public static setError(mixed $message): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | mixed | - The translation string for the message. |
getProvider
Get the Stripe Express OAuth provider.
public getProvider(): \verbb\auth\base\OAuthProvider
Automatically generated on 2024-11-13