Documentation

Documentation

Table of Contents

Packages

Application
WooCommerce

Namespaces

Mplus
WeDevs
Composer
Detection
Stripe

Classes

WC_Gateway_Ach
Class that handles ACH Direct Debit payment method.
WC_Gateway_Cashapp
Class that handles CashApp payment method.
WC_Stripe_Connect
Class that handles Card Payment payment method.
Mplus_Stripe_Connect
The main plugin class.
ComposerAutoloaderInit00c398eb18522015ac38e63e4cb605e1
Mobile_Detect
Mobile Detect Library Motto: "Every business should have a mobile detection script to detect mobile readers"

Constants

CURL_HTTP_VERSION_2TLS  = 4
CURL_SSLVERSION_TLSv1_2  = 6
MPLUSDSC  = __FILE__
MPLUSDSC_ASSETS  = trailingslashit(MPLUSDSC_URL . 'assets')
MPLUSDSC_DIR  = trailingslashit(plugin_dir_path(MPLUSDSC))
MPLUSDSC_NAME  = 'mplus-dokan-stripe-connect'
MPLUSDSC_URL  = trailingslashit(plugin_dir_url(MPLUSDSC))
MPLUSDSC_VERSION  = $this->version

Functions

mplusdsc_print()  : void
Debug data.
mplusdsc_get_option()  : array<string|int, mixed>
Get settings option value.
mplusdsc_get_template()  : mixed
Get other templates passing attributes and including the file.
mplusdsc_get_template_html()  : string
Like mplusdsc_get_template, but returns the HTML instead of outputting.
mplusdsc_locate_template()  : string
Locate a template and return the path for inclusion.
mplusdsc_doing_it_wrong()  : mixed
Wrapper for mplusdsc_doing_it_wrong.
get_vendor_from_cart()  : mixed
get_order_by_payment_id()  : mixed
is_stripe_fee_pay_by_customer()  : mixed
get_payment_fee_paid_by()  : mixed
get_product_organizer_id()  : mixed
get_event_id_from_order()  : mixed
removed_customer_stripe_id()  : mixed
get_event_ticket_types()  : mixed
get_event_id_from_cart()  : mixed
calculate_venue_fee_from_cart()  : mixed
get_payment_information()  : mixed
mplusdsc_process()  : Mplus_Stripe_Connect
Initializes the main plugin.

Constants

CURL_HTTP_VERSION_2TLS

public mixed CURL_HTTP_VERSION_2TLS = 4

CURL_SSLVERSION_TLSv1_2

public mixed CURL_SSLVERSION_TLSv1_2 = 6

Functions

mplusdsc_print()

Debug data.

mplusdsc_print(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

mplusdsc_get_option()

Get settings option value.

mplusdsc_get_option(string $option, string $section[, string $default = '' ]) : array<string|int, mixed>
Parameters
$option : string
$section : string
$default : string = ''
Return values
array<string|int, mixed>

mplusdsc_get_template()

Get other templates passing attributes and including the file.

mplusdsc_get_template(string $template_name[, array<string|int, mixed> $args = [] ][, string $template_path = '' ][, string $default_path = '' ]) : mixed

Search for the template and include the file.

Parameters
$template_name : string

template to load

$args : array<string|int, mixed> = []

args (optional) Passed arguments for the template file

$template_path : string = ''

(optional) Path to templates

$default_path : string = ''

(optional) Default path to template files

Tags
see
mplusdsc_locate_template()

mplusdsc_get_template_html()

Like mplusdsc_get_template, but returns the HTML instead of outputting.

mplusdsc_get_template_html(string $template_name[, array<string|int, mixed> $args = [] ][, string $template_path = '' ][, string $default_path = '' ]) : string
Parameters
$template_name : string

template name

$args : array<string|int, mixed> = []

Arguments. (default: array).

$template_path : string = ''

Template path. (default: '').

$default_path : string = ''

Default path. (default: '').

Tags
see
mplusdsc_get_template
Return values
string

mplusdsc_locate_template()

Locate a template and return the path for inclusion.

mplusdsc_locate_template(string $template_name[, string $template_path = '' ][, string $default_path = '' ]) : string

Locate the called template. Search Order:

  1. /themes/theme-name/plugins-name/$template_name
  2. /plugins/plugins-name/partials/templates/$template_name.
Parameters
$template_name : string

template to load

$template_path : string = ''

(optional) Path to templates

$default_path : string = ''

(optional) Default path to template files

Return values
string

$template path to the template file

mplusdsc_doing_it_wrong()

Wrapper for mplusdsc_doing_it_wrong.

mplusdsc_doing_it_wrong(string $function, string $message, string $version) : mixed
Parameters
$function : string

function used

$message : string

message to log

$version : string

version the message was added in

get_order_by_payment_id()

get_order_by_payment_id(mixed $payment_id) : mixed
Parameters
$payment_id : mixed

is_stripe_fee_pay_by_customer()

is_stripe_fee_pay_by_customer() : mixed

get_payment_fee_paid_by()

get_payment_fee_paid_by(mixed $product_id) : mixed
Parameters
$product_id : mixed

get_product_organizer_id()

get_product_organizer_id(mixed $product_id) : mixed
Parameters
$product_id : mixed

get_event_id_from_order()

get_event_id_from_order(mixed $order) : mixed
Parameters
$order : mixed

removed_customer_stripe_id()

removed_customer_stripe_id(mixed $vendor_id) : mixed
Parameters
$vendor_id : mixed

calculate_venue_fee_from_cart()

calculate_venue_fee_from_cart() : mixed

get_payment_information()

get_payment_information([mixed $order_id = NULL ]) : mixed
Parameters
$order_id : mixed = NULL

Search results