Skip to main content

Marketplace


Marketplace

  • Full name: \kennethormandy\marketplace\Marketplace
  • Parent class: Plugin

Constants

ConstantVisibilityTypeValue
EDITION_LITEpublic'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:

ParameterTypeDescription
$msgstring
$paramsarray
$levelstring

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:

ParameterTypeDescription
$messagemixed- The translation string for the message.

getProvider

Get the Stripe Express OAuth provider.

public getProvider(): \verbb\auth\base\OAuthProvider


Automatically generated on 2024-11-04