Classes

UM_Stripe_API final

Class UM_Stripe_API

Extendsum_ext\um_stripe\Functions
ImplementsNothing
UsesNothing

\UM_Stripe_API Constants

This class has not constants.

\UM_Stripe_API Methods

__construct ( )


Init constructor.

public function __construct(  ) : void
Sincev1.0.0

admin ( )


Admin Init class

public function admin(  ) : \includes\admin\Init()
Sincev1.0.0

ajax ( )


Ajax class

public function ajax(  ) : \includes\ajax\Init()
Sincev1.0.0

berlindb ( )


Initialize BerlinDB

public function berlindb(  ) : \Init()
Sincev1.0.0

common ( )


Common class

public function common(  ) : \includes\common\Init()
Sincev1.0.0

frontend ( )


Frontend class

public function frontend(  ) : \includes\frontend\Init()
Sincev1.0.0

instance ( ) static


Instance function

public static function instance(  ) : \Init
Sincev1.0.0

\UM_Stripe_API Inherited methods

\UM_Stripe_API Properties

$slug


Stripe extension slug

private $slug = 'stripe';

Types:

  • string
Sincev1.0.0

$instance static


Instance variable

private static $instance;

Types:

  • object
Sincev1.0.0

\UM_Stripe_API Inherited properties

UM_Stripe_Plugin

Class Plugin

ExtendsNothing
ImplementsNothing
UsesNothing

\UM_Stripe_Plugin Constants

This class has not constants.

\UM_Stripe_Plugin Methods

__construct ( )


Init hooks

public function __construct(  ) : void
Sincev0.1.0

admin_notice ( )


Admin Notice on Activation.

public function admin_notice(  ) : void
Sincev0.1.0

admin_notice_activation_hook ( )


Runs only when the plugin is activated.

public function admin_notice_activation_hook(  ) : void
Sincev0.1.0

plugin_action_links ( )


Function to add links to the plugin action links

public function plugin_action_links( array $links ) : void
ParameterType(s)Description
$linksarrayArray of links to be shown in plugin action links.

\UM_Stripe_Plugin Inherited methods

This class has not inherited methods.

\UM_Stripe_Plugin Properties

This class has not properties.

\UM_Stripe_Plugin Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Content_Restriction

Class Enqueue

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Content_Restriction Constants

This class has not constants.

\um_ext\um_stripe\admin\Content_Restriction Methods

__construct ( )


Init constructor.

public function __construct(  ) : void

get_fields ( )


Get Fields settings

public function get_fields( array $data ) : void
ParameterType(s)Description
$dataarrayindividual field settings.
Sincev1.0.0

post_settings_fields ( )


Posts/Pages Settings

public function post_settings_fields( array $fields, array $data, object $obj, object $post_type_object ) : void
ParameterType(s)Description
$fieldsarrayall field settings.
$dataarrayindividual field settings.
$objobjectclass objects.
$post_type_objectobjectindividual post object.
Sincev1.0.0

taxonomy_settings_fields ( )


Taxonomy Settings

public function taxonomy_settings_fields( array $fields, array $data, string $action ) : void
ParameterType(s)Description
$fieldsarrayall field settings.
$dataarrayindividual field settings.
$actionstringaction name.
Sincev1.0.0

\um_ext\um_stripe\admin\Content_Restriction Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Content_Restriction Properties

This class has not properties.

\um_ext\um_stripe\admin\Content_Restriction Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Enqueue

Class Enqueue

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Enqueue Constants

This class has not constants.

\um_ext\um_stripe\admin\Enqueue Methods

__construct ( )


Construct

public function __construct(  ) : void
Sincev1.0.0

block_editor ( )


Enqueue Block scripts

public function block_editor(  ) : void
Sincev1.0.0

init ( )


Init

public function init(  ) : void
Sincev1.0.0

um_form_screen ( )


Include admin scripts for um_form post type screen

public function um_form_screen( string $hook ) : void
ParameterType(s)Description
$hookstringpage hook.
Sincev1.0.0

wp_enqueue_scripts ( )


Enqueue scripts

public function wp_enqueue_scripts( string $hook ) : void
ParameterType(s)Description
$hookstringpage hook.
Sincev1.0.0

wp_enqueue_stripe_script ( )


Enqueue Stripe script

public function wp_enqueue_stripe_script( string $hook ) : void
ParameterType(s)Description
$hookstringpage hook.
Sincev1.0.0

wp_enqueue_stripe_script_users ( )


Enqueue Scripts to the users.php screen.

public function wp_enqueue_stripe_script_users( string $hook ) : void
ParameterType(s)Description
$hookstringpage hook.
Sincev1.0.0

\um_ext\um_stripe\admin\Enqueue Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Enqueue Properties

This class has not properties.

\um_ext\um_stripe\admin\Enqueue Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Init Constants

This class has not constants.

\um_ext\um_stripe\admin\Init Methods

content_restriction ( )


Class Content_Restriction

public function content_restriction(  ) : \um_ext\um_stripe\admin\Content_Restriction()
Sincev1.0.0

enqueue ( )


Class Enqueue

public function enqueue(  ) : \um_ext\um_stripe\admin\Enqueue()
Sincev1.0.0

includes ( )


Load includes.

public function includes(  ) : void
Sincev1.0.0

menu ( )


Class Menu

public function menu(  ) : \um_ext\um_stripe\admin\Menu()
Sincev1.0.0

metabox ( )


Class Metabox

public function metabox(  ) : \um_ext\um_stripe\admin\Metabox()
Sincev1.0.0

profile ( )


Class Profile

public function profile(  ) : \um_ext\um_stripe\admin\Profile()
Sincev1.0.0

settings ( )


Class Settings

public function settings(  ) : \um_ext\um_stripe\admin\Settings()
Sincev1.0.0

site_health ( )


Class Site_Health

public function site_health(  ) : \um_ext\um_stripe\admin\Site_Health()
Sincev1.0.0

user_columns ( )


Class User_Columns

public function user_columns(  ) : \um_ext\um_stripe\admin\User_Columns()
Sincev1.0.0

\um_ext\um_stripe\admin\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Init Properties

This class has not properties.

\um_ext\um_stripe\admin\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Menu

Class Menu

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Menu Constants

This class has not constants.

\um_ext\um_stripe\admin\Menu Methods

__construct ( )


Menu constructor.

public function __construct(  ) : void
Sincev1.0.0

extend_admin_menu ( )


Add settings page for group's members

public function extend_admin_menu(  ) : void
Sincev1.0.0

\um_ext\um_stripe\admin\Menu Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Menu Properties

This class has not properties.

\um_ext\um_stripe\admin\Menu Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Metabox

Class Metabox

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Metabox Constants

This class has not constants.

\um_ext\um_stripe\admin\Metabox Methods

__construct ( )


Metabox constructor.

public function __construct(  ) : void
Sincev1.0.0

add_metabox ( )


Add metaboxes with options to Add/Edit Profile Tab screen

public function add_metabox(  ) : void
Sincev1.0.0

add_metabox_form ( )


Add metabox forms

public function add_metabox_form(  ) : void
Sincev1.0.0

extra_user_profile_fields ( )


Add extra user profile fields.

public function extra_user_profile_fields( object $user ) : void
ParameterType(s)Description
$userobjectCurrent editing user.

save_metabox_form ( )


Save form metabox

public function save_metabox_form( integer $post_id, object $post ) : mixed
ParameterType(s)Description
$post_idintegerPost ID.
$postobjectPost Object.
Sincev1.0.0

\um_ext\um_stripe\admin\Metabox Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Metabox Properties

This class has not properties.

\um_ext\um_stripe\admin\Metabox Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Profile

Class Profile

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Profile Constants

This class has not constants.

\um_ext\um_stripe\admin\Profile Methods

__construct ( )


Profile constructor.

public function __construct(  ) : void
Sincev1.0.0

save_extra_user_profile_fields ( )


Save field values

public function save_extra_user_profile_fields( integer $user_id ) : void
ParameterType(s)Description
$user_idintegerthe current user's ID.
Sincev1.0.0

\um_ext\um_stripe\admin\Profile Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Profile Properties

This class has not properties.

\um_ext\um_stripe\admin\Profile Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Settings

Class Settings

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Settings Constants

This class has not constants.

\um_ext\um_stripe\admin\Settings Methods

__construct ( )


Settings constructor.

public function __construct(  ) : void
Sincev1.0.0

add_localize_data ( )


Add Localize Scripts

public function add_localize_data( array $data ) : array
ParameterType(s)Description
$dataarrayInitial Localize data.
Sincev1.0.0

Returns:

$data Updated Localize data.

add_settings_sanitize ( )


Apply sanitazations for all stripe settings

public function add_settings_sanitize( array $settings_map ) : array
ParameterType(s)Description
$settings_maparrayMap settings.
Sincev1.0.0

custom_info_text_sanitizer ( )


Sanitize info text

public function custom_info_text_sanitizer( mixed $content ) : mixed
ParameterType(s)Description
$contentmixedraw content.
Sincev1.0.0

Returns:

$content Sanitized content.

extend_settings ( )


Extend settings

public function extend_settings( array $settings ) : array
ParameterType(s)Description
$settingsarraycore and extension settings.
Sincev1.0.0

is_stripe_connected ( )


Check if Stripe API is connected

public function is_stripe_connected(  ) : boolean
Sincev1.0.0

Returns:

transient value.

\um_ext\um_stripe\admin\Settings Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Settings Properties

This class has not properties.

\um_ext\um_stripe\admin\Settings Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\Site_Health

Class Site_Health

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\Site_Health Constants

This class has not constants.

\um_ext\um_stripe\admin\Site_Health Methods

__construct ( )


Site_Health constructor.

public function __construct(  ) : void
Sincev1.0.0

debug_information ( )


Add our data to Site Health information.

public function debug_information( array $info ) : array
ParameterType(s)Description
$infoarrayThe Site Health information.
Sincev1.0

Returns:

The updated Site Health information.

get_stripe_plans ( )


Get Stripe Plans

private function get_stripe_plans(  ) : array
Sincev1.0.0

Returns:

$stripe_plans Stripe Plans.

um_debug_information_pages ( )


Extend predefined pages.

public function um_debug_information_pages( array $pages ) : array
ParameterType(s)Description
$pagesarraypredefined pages.
Sincev1.0

\um_ext\um_stripe\admin\Site_Health Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\Site_Health Properties

This class has not properties.

\um_ext\um_stripe\admin\Site_Health Inherited properties

This class has not inherited properties.

um_ext\um_stripe\admin\User_Columns

Class User_Columns

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\admin\User_Columns Constants

This class has not constants.

\um_ext\um_stripe\admin\User_Columns Methods

__construct ( )


Init hooks

public function __construct(  ) : void
Sincev1.0.0

show_user_subscriptions_column ( )


Add new columns

public function show_user_subscriptions_column( array $columns ) : array
ParameterType(s)Description
$columnsarrayUser columns.
Sincev1.0.0

Returns:

$column

show_user_subscriptions_row ( )


Add new columns

public function show_user_subscriptions_row( string $val, string $column_name, integer $user_id ) : string
ParameterType(s)Description
$valstringdefault value.
$column_namestringColumn name.
$user_idintegerUser ID.
Sincev1.0.0

Returns:

$val

\um_ext\um_stripe\admin\User_Columns Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\admin\User_Columns Properties

$is_sandbox_mode


Sandbox Mode

public $is_sandbox_mode = null;

Types:

  • mixed

\um_ext\um_stripe\admin\User_Columns Inherited properties

This class has not inherited properties.

um_ext\um_stripe\ajax\Checkout

Class Checkout

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\ajax\Checkout Constants

This class has not constants.

\um_ext\um_stripe\ajax\Checkout Methods

__construct ( )


Init constructor.

public function __construct(  ) : void
Sincev1.0.0

create_checkout_session ( )


Create checkout session

public function create_checkout_session(  ) : void
Sincev1.0.0

get_payment_intent ( )


Create checkout session

public function get_payment_intent(  ) : void
Sincev1.0.2

\um_ext\um_stripe\ajax\Checkout Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\ajax\Checkout Properties

This class has not properties.

\um_ext\um_stripe\ajax\Checkout Inherited properties

This class has not inherited properties.

um_ext\um_stripe\ajax\Customer

Class Customer

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\ajax\Customer Constants

This class has not constants.

\um_ext\um_stripe\ajax\Customer Methods

__construct ( )


Init constructor.

public function __construct(  ) : void
Sincev1.0.0

search_customer ( )


Search Stripe Customer

public function search_customer(  ) : void
Sincev1.0.0

search_stripe_plans ( )


Search Stripe Plans

public function search_stripe_plans(  ) : void
Sincev1.0.8

verify_nonce ( )


Verify Ajax Nonce and User capability.

private function verify_nonce(  ) : void
Sincev1.0.0

\um_ext\um_stripe\ajax\Customer Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\ajax\Customer Properties

This class has not properties.

\um_ext\um_stripe\ajax\Customer Inherited properties

This class has not inherited properties.

um_ext\um_stripe\ajax\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\ajax\Init Constants

This class has not constants.

\um_ext\um_stripe\ajax\Init Methods

checkout ( )


Checkout Ajax class

public function checkout(  ) : \um_ext\um_stripe\ajax\Checkout()
Sincev1.0.0

customer ( )


Customer Ajax class

public function customer(  ) : \um_ext\um_stripe\ajax\Customer()
Sincev1.0.0

includes ( )


Include dependencies

public function includes(  ) : void
Sincev1.0.0

metabox ( )


Metabox Ajax class

public function metabox(  ) : \um_ext\um_stripe\ajax\Metabox()
Sincev1.0.0

settings ( )


Settings Ajax class

public function settings(  ) : \um_ext\um_stripe\ajax\Metabox()
Sincev1.0.0

\um_ext\um_stripe\ajax\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\ajax\Init Properties

This class has not properties.

\um_ext\um_stripe\ajax\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\ajax\Metabox

Class Metabox

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\ajax\Metabox Constants

This class has not constants.

\um_ext\um_stripe\ajax\Metabox Methods

__construct ( )


Metabox constructor.

public function __construct(  ) : void
Sincev1.0.0

add_stripe_plans_field ( )


Stripe Plans field

public function add_stripe_plans_field(  ) : void
Sincev1.0.0

add_stripe_plans_type_field ( )


Stripe Plans Type

public function add_stripe_plans_type_field(  ) : void
Sincev1.0.0

\um_ext\um_stripe\ajax\Metabox Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\ajax\Metabox Properties

This class has not properties.

\um_ext\um_stripe\ajax\Metabox Inherited properties

This class has not inherited properties.

um_ext\um_stripe\ajax\Settings

Class Settings

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\ajax\Settings Constants

This class has not constants.

\um_ext\um_stripe\ajax\Settings Methods

__construct ( )


Init hooks

public function __construct(  ) : void
Sincev1.0.0

create_webhook ( )


Create a Webhook

public function create_webhook( boolean $testmode = true ) : mixed
ParameterType(s)Description
$testmode optionalbooleanWhether to create a webhook for Test mode or Live mode.
Sincev1.0.0

Returns:

returns the webhook secret on success, otherwise return fals.

get_stripe_prices ( )


Get Stripe Products

public function get_stripe_prices( string $secret_key, string $start_after = null, string $type = 'recurring' ) : array
ParameterType(s)Description
$secret_keystringStripe Account's secret key.
$start_after optionalstringLast Stripe Price ID in the result.
$type optionalstringStripe Product Type.
Sincev1.0.0

Returns:

$plans Stripe Products.

import_products ( )


Import products

public function import_products(  ) : \um_ext\um_stripe\ajax\json
Sincev1.0.0

Returns:

$data products data.

import_stripe_products ( )


Import Stripe Products

public function import_stripe_products( string $start_after = '' ) : void
ParameterType(s)Description
$start_after optionalstringLast Stripe Product ID.

is_webhook_exists ( )


Check if Webhook exists

public function is_webhook_exists(  ) : boolean
Sincev1.0.0

Returns:

True if exists, otherwise false.

test_api_connection ( )


Test Stripe connection

public function test_api_connection(  ) : array
Sincev1.0.0

Returns:

$data Stripe products.

test_api_disconnection ( )


Test Stripe Disconnection

public function test_api_disconnection(  ) : array
Sincev1.0.0

Returns:

$data Stripe products.

verify_nonce ( )


Verify Ajax Nonce and User capability.

private function verify_nonce(  ) : void
Sincev1.0.0

\um_ext\um_stripe\ajax\Settings Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\ajax\Settings Properties

This class has not properties.

\um_ext\um_stripe\ajax\Settings Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\CPT

Class CPT

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\CPT Constants

POST_TYPE


Post Type

POST_TYPE = 'umm_stripe';

Type: mixed

Sincev1.0.0

\um_ext\um_stripe\common\CPT Methods

__construct ( )


Initialize the class and set its properties.

public function __construct(  ) : void
Sincev1.0.0

add_um_cpt ( )


Add Stripe custom post type

public function add_um_cpt( array $cpt ) : array
ParameterType(s)Description
$cptarraycustom post types.
Sincev1.0.0

bulk_updated_messages ( )


Bulk Updated Messages

public function bulk_updated_messages( array $bulk_messages ) : void
ParameterType(s)Description
$bulk_messagesarrayMessages.
Sincev1.1.0

create_post_types ( )


Create UM's CPT

public function create_post_types(  ) : void
Sincev1.0.0

create_subscription_plan ( )


Create a Subscription Plan

public function create_subscription_plan( integer $price_id, string $label, string $mode = 'recurring', boolean $livemode = false, array $data = array() ) : array
ParameterType(s)Description
$price_idintegerThe Stripe Price ID.
$labelstringPlan Label/Title.
$mode optionalstringThe Stripe price mode.
$livemode optionalbooleanDetermines the Plan's livemode.
$data optionalarrayStripe Price raw data.
Sincev1.0.0

Returns:

$data returns array for status.

custom_row ( )


Apply custom column rows

public function custom_row( string $column, integer $post_id ) : void
ParameterType(s)Description
$columnstringColumn slug.
$post_idintegerCurrent post ID.
Sincev1.0.0

get_subscription_modes ( )


Get Subscription Modes

public function get_subscription_modes(  ) : array
Sincev1.0.0

Returns:

Subscription Modes.

is_plan_exists ( )


Checks the Stripe Plan existence.

public function is_plan_exists( integer $price_id ) : mixed
ParameterType(s)Description
$price_idintegerThe Stripe Price ID.
Sincev1.0.0

Returns:

Post ID or boolean false.

post_updated_messages ( )


Modify Post Action messages

public function post_updated_messages( array $messages ) : void
ParameterType(s)Description
$messagesarrayPost Messages.
Sincev1.1.0

remove_quick_edit ( )


Remove quick edit from Custom Post Type table

public function remove_quick_edit( array $cpts ) : array
ParameterType(s)Description
$cptsarrayCustom Post Types to filter.
Sincev1.0.3

save_post ( )


Save Plan

public function save_post( integer $post_id ) : void
ParameterType(s)Description
$post_idintegerThe Post ID.
Sincev1.1.0

set_custom_columns ( )


Set Post Type Table Columns

public function set_custom_columns( array $columns ) : \um_ext\um_stripe\common\$columns
ParameterType(s)Description
$columnsarraydefault columns data.
Sincev1.0.0

Returns:

modified columns data.

\um_ext\um_stripe\common\CPT Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\CPT Properties

$arr_subscription_modes static


Subscription Modes

public static $arr_subscription_modes = array();

Types:

  • array
Sincev1.0.0

$recurring_meta_keys


Recurring Meta Keys

public $recurring_meta_keys = array('_um_subscription_status_active', '_um_subscription_status_unpaid', '_um_subscription_status_pause', '_um_subscription_status_past_due', '_um_subscription_status_canceled', '_um_subscription_status_trialing', '_um_subscription_trial_period_days');

Types:

  • array
Sincev1.0.0

$onetime_meta_keys


One-time Meta Keys

public $onetime_meta_keys = array('_um_subscription_assign_role', '_um_subscription_assign_role_refunded');

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\common\CPT Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Fields

Class Fields

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Fields Constants

This class has not constants.

\um_ext\um_stripe\common\Fields Methods

__construct ( )


Init constructor

public function __construct(  ) : void
Sincev1.0.0

add_field_validation ( )


Add custom Stripe Email validation.

public function add_field_validation( array $validations ) : array
ParameterType(s)Description
$validationsarrayList of declated field validations.
Sincev1.0.0

Returns:

$validations

add_stripe_core_fields ( )


Add field attributes

public function add_stripe_core_fields( array $fields ) : void
ParameterType(s)Description
$fieldsarrayThe array of core fields.

add_stripe_predefined_field ( )


Add predefined fields.

public function add_stripe_predefined_field( array $fields ) : array
ParameterType(s)Description
$fieldsarrayThe array of core fields.

validate_email_unique ( )


Validate Stripe Email address

public function validate_email_unique( array $array, string $key, array $submitted_data ) : void
ParameterType(s)Description
$arrayarrayValidation settings.
$keystringField Key.
$submitted_dataarraySubmitted Form Data.
Sincev1.0.0

\um_ext\um_stripe\common\Fields Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Fields Properties

This class has not properties.

\um_ext\um_stripe\common\Fields Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Init

Class Init

Extendsum_ext\um_stripe\common\Stripe
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Init Constants

This class has not constants.

\um_ext\um_stripe\common\Init Methods

cpt ( )


Custom Post Type class

public function cpt(  ) : \um_ext\um_stripe\common\CPT()
Sincev1.0.0

fields ( )


Fields class

public function fields(  ) : \um_ext\um_stripe\common\Fields()
Sincev1.0.0

includes ( )


Includes

public function includes(  ) : void
Sincev1.0.0

logs ( )


Logs class

public function logs(  ) : \um_ext\um_stripe\common\Logs()
Sincev1.0.0

pages ( )


Pages class

public function pages(  ) : \um_ext\um_stripe\common\Pages()
Sincev1.0.0

registration ( )


Registration class

public function registration(  ) : \um_ext\um_stripe\common\Registration()
Sincev1.0.0

request_handler ( )


Request Handler class

public function request_handler(  ) : \um_ext\um_stripe\common\Request_Handler()
Sincev1.0.0

subscription ( )


Subscription class

public function subscription(  ) : \um_ext\um_stripe\common\Subscription()
Sincev1.0.0

user ( )


User class

public function user(  ) : \um_ext\um_stripe\common\User()
Sincev1.0.0

\um_ext\um_stripe\common\Init Inherited methods

\um_ext\um_stripe\common\Init Properties

This class has not properties.

\um_ext\um_stripe\common\Init Inherited properties

um_ext\um_stripe\common\Logs

Class Logs

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Logs Constants

ENVIRONMENT


ENVIRONMENT = 'development';

Type: mixed

\um_ext\um_stripe\common\Logs Methods

get_ip_address ( ) static


Get IP Address.

public static function get_ip_address(  ) : void

user ( )


Log a User activity

public function user( string $action, integer $user_id = null, string $username = '', string $current_page = '', string $description = '', string $action_objects = array() ) : void
ParameterType(s)Description
$actionstringUser Action.
$user_id optionalintegerUser ID.
$username optionalstringUsername.
$current_page optionalstringCurrent page.
$description optionalstringLog name.
$action_objects optionalstringUseful for storing data about the activity.

webhook ( )


Log a Webhook activity

public function webhook( string $action, integer $user_id = null, string $username = '', string $current_page = '', string $description = '', string $action_objects = array() ) : void
ParameterType(s)Description
$actionstringWebhook Action.
$user_id optionalintegerUser ID.
$username optionalstringUsername.
$current_page optionalstringCurrent page.
$description optionalstringLog name.
$action_objects optionalstringUseful for storing data about the activity.

\um_ext\um_stripe\common\Logs Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Logs Properties

This class has not properties.

\um_ext\um_stripe\common\Logs Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Pages

Class Pages

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Pages Constants

This class has not constants.

\um_ext\um_stripe\common\Pages Methods

__construct ( )


Initialize the class and set its properties.

public function __construct(  ) : void
Sincev1.0.0

add_predefined_pages ( )


Create default pages.

public function add_predefined_pages( array $pages ) : array
ParameterType(s)Description
$pagesarraypage settings.
Sincev1.0.0

flush_rewrite_rule ( )


Flush Rewrite rule when the Checkout page has been updated e.g. slug changed.

public function flush_rewrite_rule( integer $post_id, object $post, boolean $update ) : void
ParameterType(s)Description
$post_idintegerPost ID.
$postobjectPost Object.
$updatebooleanWhethere the post is updated or published.
Sincev1.0.0

init ( )


Rewrite URL for checkout page

public function init(  ) : void
Sincev1.0.0

predefined_pages_content ( )


Predefined pages content.

public function predefined_pages_content( string $content, string $slug ) : string
ParameterType(s)Description
$contentstringPredefined page content.
$slugstringPredefined page slug (key).
Sincev1.0.0

Returns:

Predefined page content.

\um_ext\um_stripe\common\Pages Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Pages Properties

This class has not properties.

\um_ext\um_stripe\common\Pages Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Registration

Class Registration

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Registration Constants

This class has not constants.

\um_ext\um_stripe\common\Registration Methods

__construct ( )


Initialize the class and set its properties.

public function __construct(  ) : void
Sincev1.0.0

checkout_on_registration ( )


Checkout

public function checkout_on_registration( array $submitted_data, array $form_data ) : void
ParameterType(s)Description
$submitted_dataarraySubmitted Data.
$form_dataarrayRegister Form settings.

Description:

Sends the submitted to Stripe checkout session.

Sincev1.0.0

redirect_after_successful_checkout ( )


Redirect after successful checkout.

public function redirect_after_successful_checkout(  ) : void

set_stripe_customer ( )


Stripe Checkout

public function set_stripe_customer( integer $user_id, array $args ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$argsarrayForm array arguments.
Sincev1.0.0

show_overlay ( )


Display overlay

public function show_overlay(  ) : void
Sincev1.0.2

validate_billing_email ( )


Validate billing email address

public function validate_billing_email( array $args ) : void
ParameterType(s)Description
$argsarrayForm submitted fields.
Sincev1.0.0

webhook_register ( )


Process Registration

public function webhook_register( object $checkout_session, string $payment_mode ) : void
ParameterType(s)Description
$checkout_sessionobjectCheckout Session Object.
$payment_modestringPayment Mode.

\um_ext\um_stripe\common\Registration Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Registration Properties

This class has not properties.

\um_ext\um_stripe\common\Registration Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Request_Handler

Class Request_Handler

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\Request_Handler Constants

This class has not constants.

\um_ext\um_stripe\common\Request_Handler Methods

__construct ( )


Init hooks

public function __construct(  ) : void
Sincev1.0.0

checkout ( )


Subscription via Direct URL Redirect User to Stripe checkout with selected Stripe Price ID.

public function checkout(  ) : void
Sincev1.0.0

customer_portal_session ( )


Create Customer portal session

public function customer_portal_session( boolean $direct = false ) : void
ParameterType(s)Description
$direct optionalbooleanWhether to redirect user without the extra parameters.
Sincev1.0.0

flush_roles ( )


Deletes all user roles

public function flush_roles( integer $user_id ) : void
ParameterType(s)Description
$user_idintegerUser ID.
Sincev1.0.0

stripe_redirect_hosts ( )


Add Stripe hosts for safe redirection.

public function stripe_redirect_hosts( array $hosts ) : array
ParameterType(s)Description
$hostsarrayWP allowed hosts.
Sincev1.0.0

Returns:

modified allowed hosts.

swap_role ( )


Switch old role with the a new role

public function swap_role( integer $user_id, string $new_role ) : void
ParameterType(s)Description
$user_idintegerUser ID.
$new_rolestringCurrent User Role.

umm_stripe_status_active ( )


Assign Role on Active subscription

public function umm_stripe_status_active( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_canceled ( )


Assign Role on Canceled subscription

public function umm_stripe_status_canceled( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_incomplete ( )


Assign Role on Incomplete subscription

public function umm_stripe_status_incomplete( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_incomplete_expired ( )


Assign Role on Incomplete-Expired subscription

public function umm_stripe_status_incomplete_expired( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_onetime_refunded ( )


Set role on one-time refund

public function umm_stripe_status_onetime_refunded( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_past_due ( )


Assign Role on Past Due subscription

public function umm_stripe_status_past_due( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_pause ( )


Assign Role on Pause subscription

public function umm_stripe_status_pause( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_trialing ( )


Assign Role on Trialing subscription

public function umm_stripe_status_trialing( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_status_unpaid ( )


Assign Role on Unpaid subscription

public function umm_stripe_status_unpaid( integer $user_id, integer $role ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
$roleintegerThe assigning role.
Sincev1.0.0

umm_stripe_user_status_delete ( )


Delete Subscription Status.

public function umm_stripe_user_status_delete( integer $user_id ) : void
ParameterType(s)Description
$user_idintegerThe customer ID.
Sincev1.0.0

webhook_response ( )


Handles webhook responses

public function webhook_response(  ) : void
Sincev1.0.0

webhook_success ( )


Webhook Success

public function webhook_success(  ) : void

\um_ext\um_stripe\common\Request_Handler Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Request_Handler Properties

$checkout_session


Checkout Session

public $checkout_session = null;

Types:

  • mixed
Sincev1.0.2

$payload_object


Checkout Session

public $payload_object = null;

Types:

  • mixed
Sincev1.0.2

$customer_id


Customer ID in process

public $customer_id = null;

Types:

  • mixed
Sincev1.0.8

\um_ext\um_stripe\common\Request_Handler Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\Stripe

Class Stripe

ExtendsNothing
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\common\Stripe Constants

This class has not constants.

\um_ext\um_stripe\common\Stripe Methods

__construct ( )


Init

public function __construct(  ) : void
Sincev1.0.0

assign_stripe_account ( )


Assign Stripe account to a another WP account

public function assign_stripe_account( integer $old_user_id, integer $new_user_id, string $stripe_customer_id ) : boolean
ParameterType(s)Description
$old_user_idintegerPrevious WP account's user ID.
$new_user_idintegerNew WP account's user ID.
$stripe_customer_idstringStripe customer ID.
Sincev1.0.0

base64_encode_url ( )


Base64 encoding.

public function base64_encode_url( string $url ) : string
ParameterType(s)Description
$urlstringString to process.

Returns:

encoded string.

cache_price ( )


Cache Stripe Prices

public function cache_price( string $id, string $label, array $data, string $type, string $livemode, string $price_label, object $obj_product ) : void
ParameterType(s)Description
$idstringThe Stripe Price ID.
$labelstringThe Stripe Product Name.
$dataarrayThe raw Stripe Price data.
$typestringThe Stripe Price type.
$livemodestringThe Stripe Price mode.
$price_labelstringFormatted Price Label.
$obj_productobjectStripe Product.
Sincev1.0.0

check_api_key ( )


Checks API keys validation

public function check_api_key(  ) : void
Sincev1.0.0

get_all_prices ( )


Get all prices from cache

public function get_all_prices(  ) : void
Sincev1.0.2

get_all_products ( )


Get all products from cache

public function get_all_products(  ) : void
Sincev1.0.0

get_cpt_price_id ( )


Get Price ID from Custom Post Type

public function get_cpt_price_id( integer $post_id ) : void
ParameterType(s)Description
$post_idintegerCPT post ID.
Sincev1.0.0

get_cpt_price_mode ( )


Get Price Mode from Custom Post Type

public function get_cpt_price_mode( integer $post_id ) : void
ParameterType(s)Description
$post_idintegerCPT post ID.
Sincev1.0.0

get_order_details ( )


Get Order Details with Checkout Session

public function get_order_details( string $checkout_session, boolean $once = false, boolean $session_only = false ) : void
ParameterType(s)Description
$checkout_sessionstringCheckout Session ID.
$once optionalbooleanCache checkout session data once.
$session_only optionalbooleanWhether returning the session object only.
Sincev1.0.0

get_price ( )


Get Stripe Price

public function get_price( string $price_id, boolean $with_product = false ) : void
ParameterType(s)Description
$price_idstringStripe Price ID.
$with_product optionalbooleanInclude Product data.

get_product ( )


Get product from cache

public function get_product( string $product_id ) : void
ParameterType(s)Description
$product_idstringStripe Product ID.
Sincev1.0.0

get_status_title ( )


Get status title

public function get_status_title( string $status_slug ) : string
ParameterType(s)Description
$status_slugstringStripe status key.
Sincev1.0.0

get_tax_meta ( )


Get Tax Meta

public function get_tax_meta( string $code ) : void
ParameterType(s)Description
$codestringTax Code.
Sincev1.0.0

is_billing_email_exists ( )


Check if a billing email already in use on Stripe.com

public function is_billing_email_exists( string $email ) : boolean
ParameterType(s)Description
$emailstringEmail address.
Sincev1.0.0

stripe_api ( )


Stripe PHP core library

public function stripe_api( string $secret_key = '' ) : void
ParameterType(s)Description
$secret_key optionalstringStripe API secret key.
Sincev1.0.0

update_cache_price_product ( )


Cache Price's Product.

public function update_cache_price_product( string $price_id, object $obj_product ) : void
ParameterType(s)Description
$price_idstringStripe Price ID.
$obj_productobjectStripe Product.
Sincev1.0.0

update_product_cache ( )


Update a product cache.

public function update_product_cache( string $product_id, object $obj_product ) : void
ParameterType(s)Description
$product_idstringStripe Product ID.
$obj_productobjectStripe Product.
Sincev1.0.0

\um_ext\um_stripe\common\Stripe Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\Stripe Properties

$stripe_products


Stripe Products

public $stripe_products = array();

Types:

  • array
Sincev1.0.0

$stripe_prices


Stripe Prices

public $stripe_prices = array();

Types:

  • array
Sincev1.0.0

$stripe_stauses


Stripe Statuses

public $stripe_stauses = array();

Types:

  • array
Sincev1.0.0

$stripe_payment_method_types


Stripe Statuses

public $stripe_payment_method_types = array('acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip');

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\common\Stripe Inherited properties

This class has not inherited properties.

um_ext\um_stripe\common\User

Class User

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\common\User Constants

This class has not constants.

\um_ext\um_stripe\common\User Methods

create_stripe_customer ( )


Creates a Stripe Customer

public function create_stripe_customer( integer|null $user_id = null, null|string $billing_email = null ) : mixed
ParameterType(s)Description
$user_id optionalinteger
null
User ID.
$billing_email optionalnull
string
Optiona billing email.
Sincev1.0.0

Returns:

$customer_id customer's ID or null.

delete_user ( )


Delete Stripe customer on UM Account deletion

public function delete_user( integer $user_id ) : void
ParameterType(s)Description
$user_idintegerUser ID.
Sincev1.0.0

get_subscription_data ( )


Get a user's subscription data

public function get_subscription_data( integer $user_id = null ) : void
ParameterType(s)Description
$user_id optionalintegerUser ID.
Sincev1.0.2

get_subscription_id ( )


Gets user's subscription ID

public function get_subscription_id( integer $user_id = null ) : void
ParameterType(s)Description
$user_id optionalintegerUser ID.
Sincev1.0.0

has_active_subscription ( )


Checks if a user has an active subscription.

public function has_active_subscription( integer $user_id = null, boolean $return_status = false ) : mixed
ParameterType(s)Description
$user_id optionalintegerThe User ID.
$return_status optionalbooleanReturn the status name.
Sincev1.0.0

Returns:

$status The status name.

hooks ( )


Hooks

public function hooks(  ) : void
Sincev1.0.0

is_subscribed ( )


Checks if a user is already subscribed

public function is_subscribed( integer $user_id = null, boolean $return_status = false ) : mixed
ParameterType(s)Description
$user_id optionalintegerThe User ID.
$return_status optionalbooleanReturn the status name.
Sincev1.0.0

Returns:

$status The status name.

show_plan_title_for_admin_review_registration ( )


Add Stripe Plan Title to the Submitted Data form

public function show_plan_title_for_admin_review_registration( string $v, string $k ) : void
ParameterType(s)Description
$vstringValue.
$kstringMeta Key.
Sincev1.1.0

\um_ext\um_stripe\common\User Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\common\User Properties

$has_active_subscription


Has Active Subscription

private $has_active_subscription;

Types:

  • mixed
Sincev1.1.0

\um_ext\um_stripe\common\User Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing
Sincev1.0.2

\um_ext\um_stripe\db\Init Constants

This class has not constants.

\um_ext\um_stripe\db\Init Methods

__construct ( )


Includes

public function __construct(  ) : void
Sincev1.0.2

logs ( )


Logs table

public function logs(  ) : void
Sincev1.0.2

subscriptions ( )


Subscriptions table

public function subscriptions(  ) : void
Sincev1.0.2

\um_ext\um_stripe\db\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\Init Properties

This class has not properties.

\um_ext\um_stripe\db\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Account

Class Account

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Account Constants

This class has not constants.

\um_ext\um_stripe\frontend\Account Methods

__construct ( )


Init

public function __construct(  ) : void

account_tab ( )


Register Billing Tab

public function account_tab( array $tabs ) : void
ParameterType(s)Description
$tabsarrayTabs.
Sincev1.0.8

billing_tab_content ( )


Add content to account tab

public function billing_tab_content( string $output ) : string
ParameterType(s)Description
$outputstringHTML output.

\um_ext\um_stripe\frontend\Account Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Account Properties

This class has not properties.

\um_ext\um_stripe\frontend\Account Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Content_Restriction

Class Enqueue

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Content_Restriction Constants

This class has not constants.

\um_ext\um_stripe\frontend\Content_Restriction Methods

__construct ( )


Init constructor.

public function __construct(  ) : void
Sincev1.0.0

apply_post_restrictions ( )


Apply Post/Page restrictions based on Stripe Plans

public function apply_post_restrictions( boolean $restricted, integer $object_id ) : void
ParameterType(s)Description
$restrictedbooleanIs restricted?.
$object_idintegerPost ID.
Sincev1.0.0

apply_taxonomy_restrictions ( )


Apply Taxonomy restrictions based on Stripe Plans

public function apply_taxonomy_restrictions( boolean $restricted, integer $object_id ) : void
ParameterType(s)Description
$restrictedbooleanIs restricted?.
$object_idintegerTaxonomy/Tag ID.
Sincev1.0.0

cache_price_hash_id ( )


Cache Price & Plans IDs

public function cache_price_hash_id(  ) : void
Sincev1.0.2

get_post_restriction_settings ( )


Get Post/Page Restriction settings

public function get_post_restriction_settings( integer $object_id ) : void
ParameterType(s)Description
$object_idintegerPost ID.
Sincev1.0.0

get_taxonomy_restriction_settings ( )


Get Taxonomy Restriction settings

public function get_taxonomy_restriction_settings( integer $object_id ) : void
ParameterType(s)Description
$object_idintegerTaxonomy/Tag ID.
Sincev1.0.0

init ( )


Init

public function init(  ) : void

\um_ext\um_stripe\frontend\Content_Restriction Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Content_Restriction Properties

$price_hash_id


Price Hash ID

public $price_hash_id = null;

Types:

  • mixed
Sincev1.0.2

\um_ext\um_stripe\frontend\Content_Restriction Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Enqueue

Class Enqueue

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Enqueue Constants

This class has not constants.

\um_ext\um_stripe\frontend\Enqueue Methods

__construct ( )


Enqueue constructor.

public function __construct(  ) : void
Sincev1.0.0

wp_enqueue_scripts ( )


Enqueue front-end scripts

public function wp_enqueue_scripts(  ) : void
Sincev1.0.0

\um_ext\um_stripe\frontend\Enqueue Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Enqueue Properties

This class has not properties.

\um_ext\um_stripe\frontend\Enqueue Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Init Constants

This class has not constants.

\um_ext\um_stripe\frontend\Init Methods

account ( )


Class Account

public function account(  ) : \um_ext\um_stripe\frontend\Account()
Sincev1.0.0

content_restriction ( )


Class Content_Restriction

public function content_restriction(  ) : \um_ext\um_stripe\frontend\Content_Restriction()
Sincev1.0.0

enqueue ( )


Enqueue class

public function enqueue(  ) : \um_ext\um_stripe\frontend\Enqueue()
Sincev1.0.0

includes ( )


Include dependencies

public function includes(  ) : void
Sincev1.0.0

registration ( )


Registration class

public function registration(  ) : \um_ext\um_stripe\frontend\Registration()
Sincev1.0.0

shortcode ( )


Shortcode class

public function shortcode(  ) : \um_ext\um_stripe\frontend\Shortcode()
Sincev1.0.0

\um_ext\um_stripe\frontend\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Init Properties

This class has not properties.

\um_ext\um_stripe\frontend\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Registration

Class Registration

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Registration Constants

This class has not constants.

\um_ext\um_stripe\frontend\Registration Methods

__construct ( )


Initialize the class and set its properties.

public function __construct(  ) : void
Sincev1.0.0

builder_input_map ( )


Allow HTML tags for Stripe Plans labels

public function builder_input_map( array $args ) : array
ParameterType(s)Description
$argsarrayfield options.
Sincev1.0.0

Returns:

$args updated field options.

um_stripe_field_register ( )


Register fields

public function um_stripe_field_register( string $output, array $data ) : string
ParameterType(s)Description
$outputstringHTML output.
$dataarrayfield settings.
Sincev1.0.0

\um_ext\um_stripe\frontend\Registration Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Registration Properties

This class has not properties.

\um_ext\um_stripe\frontend\Registration Inherited properties

This class has not inherited properties.

um_ext\um_stripe\frontend\Shortcode

Class Shortcode

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\frontend\Shortcode Constants

This class has not constants.

\um_ext\um_stripe\frontend\Shortcode Methods

__construct ( )


Shortcode constructor.

public function __construct(  ) : void
Sincev1.0.0

show_content ( )


Display Message for inactive subscription.

public function show_content( array $args, mixed $content = '' ) : void
ParameterType(s)Description
$argsarrayShortcode attributes.
$content optionalmixedEnclosed content.
Sincev1.1.0

ultimatemember_stripe ( )


Stripe Button shortcode.

public function ultimatemember_stripe( array $atts = array() ) : string
ParameterType(s)Description
$atts optionalarrayshortcode attributes.
Sincev1.0.0

ultimatemember_stripe_customer_portal ( )


Stripe Customer Portal

public function ultimatemember_stripe_customer_portal( array $atts = array() ) : string
ParameterType(s)Description
$atts optionalarrayShortcode attributes.
Sincev1.0.0

ultimatemember_stripe_order_details ( )


Displays Order Details

public function ultimatemember_stripe_order_details( array $args ) : void
ParameterType(s)Description
$argsarrayShortcode attributes.

ultimatemember_stripe_payment_checkout_form ( )


Displays Checkout form

public function ultimatemember_stripe_payment_checkout_form( array $args ) : void
ParameterType(s)Description
$argsarrayShortcode attributes.

\um_ext\um_stripe\frontend\Shortcode Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\frontend\Shortcode Properties

$already_subscribed


Already Subscribed

public $already_subscribed = 0;

Types:

  • integer

\um_ext\um_stripe\frontend\Shortcode Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\logs\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\db\logs\Init Constants

This class has not constants.

\um_ext\um_stripe\db\logs\Init Methods

__construct ( )


Includes

public function __construct(  ) : void
Sincev1.0.0

query ( )


Query

public function query(  ) : \um_ext\um_stripe\db\logs\Query()
Sincev1.0.0

schema ( )


Schema class

public function schema(  ) : \um_ext\um_stripe\db\logs\Schema()
Sincev1.0.0

table ( )


Table class

public function table(  ) : \um_ext\um_stripe\db\logs\table()
Sincev1.0.0

\um_ext\um_stripe\db\logs\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\logs\Init Properties

This class has not properties.

\um_ext\um_stripe\db\logs\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\logs\Logs_Query

Class Logs_Query

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Query Constants

This class has not constants.

\um_ext\um_stripe\db\logs\Logs_Query Methods

This class has not methods.

\um_ext\um_stripe\db\logs\Logs_Query Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\logs\Logs_Query Properties

$table_name


Name of the database table to query.

protected $table_name = 'um_stripe_logs';

Types:

  • string
Sincev1.0.0

$table_alias


String used to alias the database table in MySQL statement.

protected $table_alias = 'um_stripe_log';

Types:

  • string

Description:

Keep this short, but descriptive. I.E. "tr" for term relationships.

This is used to avoid collisions with JOINs.

Sincev1.0.0

$table_schema


Name of class used to setup the database schema.

protected $table_schema = 'um_ext\um_stripe\db\logs\Logs_Schema';

Types:

  • string
Sincev1.0.0

$item_name


Name for a single item.

protected $item_name = 'um_stripe_log';

Types:

  • string

Description:

Use underscores between words. I.E. "term_relationship"

This is used to automatically generate action hooks.

Sincev1.0.0

$item_name_plural


Plural version for a group of items.

protected $item_name_plural = 'um_stripe_logs';

Types:

  • string

Description:

Use underscores between words. I.E. "term_relationships"

This is used to automatically generate action hooks.

Sincev1.0.0

$item_shape


Name of class used to turn IDs into first-class objects.

protected $item_shape = 'Log';

Types:

  • mixed

Description:

This is used when looping through return values to guarantee their shape.

Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Query Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\logs\Logs_Schema

Class Logs_Schema

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Schema Constants

This class has not constants.

\um_ext\um_stripe\db\logs\Logs_Schema Methods

This class has not methods.

\um_ext\um_stripe\db\logs\Logs_Schema Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\logs\Logs_Schema Properties

$columns


Columns

public $columns = array('id' => array('name' => 'id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'extra' => 'auto_increment', 'primary' => true, 'sortable' => true), 'action' => array('name' => 'action', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'trigger_type' => array('name' => 'trigger_type', 'type' => 'tinytext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'user_id' => array('name' => 'user_id', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'username' => array('name' => 'username', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'current_page' => array('name' => 'current_page', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'ip_address' => array('name' => 'ip_address', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'description' => array('name' => 'description', 'type' => 'longtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'metadata' => array('name' => 'metadata', 'type' => 'longtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'date_created' => array('name' => 'date_created', 'type' => 'timestamp', 'date_query' => true, 'unsigned' => true, 'searchable' => true, 'sortable' => true));

Types:

  • mixed

\um_ext\um_stripe\db\logs\Logs_Schema Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\logs\Logs_Table

Class Logs_Table

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Table Constants

This class has not constants.

\um_ext\um_stripe\db\logs\Logs_Table Methods

__10052023 ( )


Upgrade to version 10052023

  • Change table constraint
protected function __10052023(  ) : boolean
Sincev1.0.0

__11092023 ( )


Upgrade to version 11092023

  • Change table constraint
protected function __11092023(  ) : boolean
Sincev1.0.2

__12162023 ( )


Upgrade to version 12162023

  • Fix Containts
protected function __12162023(  ) : void
Sincev1.0.6

set_schema ( )


Setup this database table.

protected function set_schema(  ) : void
Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Table Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\logs\Logs_Table Properties

$name


Table name, without the global table prefix.

public $name = 'um_stripe_logs';

Types:

  • string
Sincev1.0.0

$db_version_key


Database version key (saved in _options or _sitemeta)

protected $db_version_key = 'um_stripe_logs_version';

Types:

  • string
Sincev1.0.0

$description


Optional description.

public $description = 'UM Stripe Logs';

Types:

  • string
Sincev1.0.0

$version


Database version.

protected $version = '12162023';

Types:

  • mixed
Sincev1.0.0

$upgrades


Key => value array of versions => methods.

protected $upgrades = array('10052023' => 10052023, '11092023' => 11092023, '12162023' => 12162023);

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\db\logs\Logs_Table Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\subscriptions\Init

Class Init

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\db\subscriptions\Init Constants

This class has not constants.

\um_ext\um_stripe\db\subscriptions\Init Methods

__construct ( )


Includes

public function __construct(  ) : void
Sincev1.0.0

query ( )


Query

public function query(  ) : \um_ext\um_stripe\db\subscriptions\Query()
Sincev1.0.0

rows ( )


Rows class

public function rows(  ) : \um_ext\um_stripe\db\subscriptions\rows()
Sincev1.0.2

schema ( )


Schema class

public function schema(  ) : \um_ext\um_stripe\db\subscriptions\Schema()
Sincev1.0.0

table ( )


Table class

public function table(  ) : \um_ext\um_stripe\db\subscriptions\table()
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Init Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\subscriptions\Init Properties

This class has not properties.

\um_ext\um_stripe\db\subscriptions\Init Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\subscriptions\Subscriptions

Class Subscriptions_Query

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.2

\um_ext\um_stripe\db\subscriptions\Subscriptions Constants

This class has not constants.

\um_ext\um_stripe\db\subscriptions\Subscriptions Methods

__construct ( )


Subscriptions constructor.

public function __construct( object $item ) : void
ParameterType(s)Description
$itemobjectrow.
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions Properties

This class has not properties.

\um_ext\um_stripe\db\subscriptions\Subscriptions Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\subscriptions\Subscriptions_Query

Class Subscriptions_Query

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Query Constants

This class has not constants.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Query Methods

This class has not methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Query Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Query Properties

$table_name


Name of the database table to query.

protected $table_name = 'um_stripe_subscriptions';

Types:

  • string
Sincev1.0.0

$table_alias


String used to alias the database table in MySQL statement.

protected $table_alias = 'um_stripe_subscription';

Types:

  • string

Description:

Keep this short, but descriptive. I.E. "tr" for term relationships.

This is used to avoid collisions with JOINs.

Sincev1.0.0

$table_schema


Name of class used to setup the database schema.

protected $table_schema = 'um_ext\um_stripe\db\subscriptions\Subscriptions_Schema';

Types:

  • string
Sincev1.0.0

$item_name


Name for a single item.

protected $item_name = 'um_stripe_subscription';

Types:

  • string

Description:

Use underscores between words. I.E. "term_relationship"

This is used to automatically generate action hooks.

Sincev1.0.0

$item_name_plural


Plural version for a group of items.

protected $item_name_plural = 'um_stripe_subscriptions';

Types:

  • string

Description:

Use underscores between words. I.E. "term_relationships"

This is used to automatically generate action hooks.

Sincev1.0.0

$item_shape


Name of class used to turn IDs into first-class objects.

protected $item_shape = 'Subscriptions';

Types:

  • mixed

Description:

This is used when looping through return values to guarantee their shape.

Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Query Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\subscriptions\Subscriptions_Schema

Class Subscriptions_Schema

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Schema Constants

This class has not constants.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Schema Methods

This class has not methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Schema Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Schema Properties

$columns


Columns

public $columns = array('id' => array('name' => 'id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'extra' => 'auto_increment', 'primary' => true, 'sortable' => true), 'user_id' => array('name' => 'user_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'type' => array('name' => 'type', 'type' => 'enum', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'plan_id' => array('name' => 'plan_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'subscription_id' => array('name' => 'subscription_id', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'price_id' => array('name' => 'price_id', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'product_id' => array('name' => 'product_id', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'hash_id' => array('name' => 'hash_id', 'type' => 'longtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'status' => array('name' => 'status', 'type' => 'mediumtext', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'payment_link' => array('name' => 'payment_link', 'type' => 'tinyint', 'unsigned' => true, 'searchable' => true, 'sortable' => true), 'date_created' => array('name' => 'date_created', 'type' => 'timestamp', 'date_query' => true, 'unsigned' => true, 'searchable' => true, 'sortable' => true));

Types:

  • mixed

\um_ext\um_stripe\db\subscriptions\Subscriptions_Schema Inherited properties

This class has not inherited properties.

um_ext\um_stripe\db\subscriptions\Subscriptions_Table

Class Subscriptions_Table

Extends\
ImplementsNothing
UsesNothing
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Table Constants

This class has not constants.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Table Methods

__10202023 ( )


Upgrade to version 10202023

  • Change table constraint
protected function __10202023(  ) : boolean
Sincev1.0.2

__11092023 ( )


Upgrade to version 11092023

  • Change table constraint
protected function __11092023(  ) : boolean
Sincev1.0.2

__11292023 ( )


Upgrade to version 11292023

  • Add new colum for payment_link mode.
protected function __11292023(  ) : boolean
Sincev1.0.2

__12162023 ( )


Upgrade to version 12162023

  • Fix constaint
protected function __12162023(  ) : boolean
Sincev1.0.6

set_schema ( )


Setup this database table.

protected function set_schema(  ) : void
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Table Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\db\subscriptions\Subscriptions_Table Properties

$name


Table name, without the global table prefix.

public $name = 'um_stripe_subscriptions';

Types:

  • string
Sincev1.0.0

$db_version_key


Database version key (saved in _options or _sitemeta)

protected $db_version_key = 'um_stripe_subscriptions_version';

Types:

  • string
Sincev1.0.0

$description


Optional description.

public $description = 'UM Stripe Subscriptions';

Types:

  • string
Sincev1.0.0

$version


Database version.

protected $version = '12162023';

Types:

  • mixed
Sincev1.0.0

$upgrades


Key => value array of versions => methods.

protected $upgrades = array('10202023' => 10202023, '11092023' => 11092023, '11292023' => 11292023, '12142023' => 11092023, '12162023' => 12162023);

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\db\subscriptions\Subscriptions_Table Inherited properties

This class has not inherited properties.

um_ext\um_stripe\Functions

Class Functions

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\Functions Constants

This class has not constants.

\um_ext\um_stripe\Functions Methods

get_billing_plan_formatted_title ( )


Get formatted Billing Plan Title

public function get_billing_plan_formatted_title( object $price_data, string $interval, integer $interval_count, boolean $bill_next_line = false, boolean $onetime = false ) : string
ParameterType(s)Description
$price_dataobjectStripe Price.
$intervalstringStripe Price Interval.
$interval_countintegerStripe Interval Count.
$bill_next_line optionalbooleanAdd breakline before "every".
$onetime optionalbooleanRender title for one-time payment plan.
Sincev1.0.0

Returns:

Formatted Billing Plan Title.

get_billing_plan_title ( )


Get Billing Plan Title

public function get_billing_plan_title( float $price, string $interval, integer $interval_count, boolean $bill_next_line = false ) : string
ParameterType(s)Description
$pricefloatStripe Price.
$intervalstringStripe Price Interval.
$interval_countintegerStripe Interval Count.
$bill_next_line optionalbooleanAdd breakline before "every".
Sincev1.0.0

Returns:

Formatted Billing Plan Title.

get_plans ( )


Get Stripe Plans

public function get_plans( boolean $include_id_in_labels = false, string $mode = 'all' ) : array
ParameterType(s)Description
$include_id_in_labels optionalbooleanWhether to include ID in the labels.
$mode optionalstringFilter plans by subscription/price mode.
Sincev1.0.0

Returns:

Posts.

get_price_by_post_id ( )


Get Price by Post ID

public function get_price_by_post_id( integer $post_id ) : string
ParameterType(s)Description
$post_idintegerPost ID.
Sincev1.0.0

Returns:

Formatted Price.

get_price_data_by_post_id ( )


Get Price Data from Cache

public function get_price_data_by_post_id( integer $post_id ) : mixed
ParameterType(s)Description
$post_idintegerThe Post ID.
Sincev1.0.0

Returns:

Price data array, false when nothing found in the cache.

get_price_data_by_price_id ( )


Get Price Data from Cache by Price ID

public function get_price_data_by_price_id( integer $price_id ) : mixed
ParameterType(s)Description
$price_idintegerThe Stripe Price ID.
Sincev1.0.8

Returns:

Price data array, false when nothing found in the cache.

get_price_mode_by_post_id ( )


Get Price Mode by Post ID

public function get_price_mode_by_post_id( integer $post_id ) : string
ParameterType(s)Description
$post_idintegerThe Post ID.
Sincev1.0.0

Returns:

$mode Mode in HTML format.

get_public_key ( )


Get Stripe Public key

public function get_public_key(  ) : void
Sincev1.0.0

get_secret_key ( )


Get Stripe Secret key

public function get_secret_key(  ) : void
Sincev1.0.0

get_stripe_prices ( )


Get Stripe Prices

public function get_stripe_prices(  ) : void
Sincev1.0.0

get_subscription_mode_title ( )


Get Subscription Mode label

public function get_subscription_mode_title( string $mode_slug ) : string
ParameterType(s)Description
$mode_slugstringSubscription Mode slug.
Sincev1.0.0

Returns:

Subscription Label

get_webhook_key ( )


Get Stripe Webhook key

public function get_webhook_key(  ) : void
Sincev1.0.0

get_webhook_url ( ) static


Gets the webhook URL for Stripe triggers. Used mainly for asyncronous redirect payment methods in which statuses are not immediately chargeable.

public static function get_webhook_url(  ) : string
Sincev1.0.0

is_delete_roles ( )


Get Delete Roles option

public function is_delete_roles(  ) : boolean
Sincev1.0.0

\um_ext\um_stripe\Functions Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\Functions Properties

$price_option static


Price Options

public static $price_option = array();

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\Functions Inherited properties

This class has not inherited properties.

um_ext\um_stripe\Install

Class Install

ExtendsNothing
ImplementsNothing
UsesNothing

\um_ext\um_stripe\Install Constants

This class has not constants.

\um_ext\um_stripe\Install Methods

__construct ( )


Init

public function __construct(  ) : void
Sincev1.0.0

force_show_create_pages ( )


Show create pages admin notice if it was hidden.

private function force_show_create_pages(  ) : void
Sincev1.0.0

set_default_settings ( )


Save default settings on start

private function set_default_settings(  ) : void
Sincev1.0.0

start ( )


Start installation process.

public function start(  ) : void
Sincev1.0.0

\um_ext\um_stripe\Install Inherited methods

This class has not inherited methods.

\um_ext\um_stripe\Install Properties

$settings_defaults


Default settings

public $settings_defaults;

Types:

  • array
Sincev1.0.0

\um_ext\um_stripe\Install Inherited properties

This class has not inherited properties.


Auto-generated at: 2024-04-17, 7:46 AM
Last Updated:
Contributors: Champ Camba