WC_Payment_Token_Stripe_Local
extends WC_Payment_Token_Stripe
in package
uses
WC_Payment_Token_Payment_Method_Trait
Tags
Table of Contents
Properties
- $extra_data : mixed
- $format : string
- The format of the payment method
- $has_expiration : mixed
- $object_type : mixed
- $stripe_data : mixed
- $stripe_payment_type : string
- $type : mixed
Methods
- __construct() : mixed
- delete_from_stripe() : mixed
- details_to_props() : mixed
- get_basic_payment_method_title() : string
- get_brand() : mixed
- get_customer_id() : mixed
- get_display_name() : mixed
- get_environment() : mixed
- get_format() : mixed
- get_formats() : mixed
- Return formats used by the token to display a human readable title.
- get_gateway_title() : mixed
- get_html_classes() : mixed
- get_payment_method_title() : mixed
- Return a human readable representation of the payment method.
- get_props_data() : mixed
- get_stripe_data() : mixed
- Returns an array of merged attributes comprised of the $stripe_data property.
- has_expiration() : mixed
- save_payment_method() : mixed
- set_brand() : mixed
- set_customer_id() : mixed
- set_environment() : mixed
- set_format() : mixed
- set_gateway_title() : mixed
- to_json() : array<string|int, mixed>
- Return a json array of data that represents the object.
- token_exists() : mixed
Properties
$extra_data
protected
mixed
$extra_data
= array('format' => '', 'environment' => 'production', 'brand' => '', 'customer_id' => '')
$format
The format of the payment method
protected
string
$format
= ''
$has_expiration
protected
mixed
$has_expiration
= \false
$object_type
protected
mixed
$object_type
= 'payment_token'
$stripe_data
protected
mixed
$stripe_data
= array('gateway_title' => '')
$stripe_payment_type
protected
string
$stripe_payment_type
Tags
$type
protected
mixed
$type
= 'Stripe_Local'
Methods
__construct()
public
__construct([mixed $token = '' ]) : mixed
Parameters
- $token : mixed = ''
delete_from_stripe()
public
delete_from_stripe() : mixed
details_to_props()
public
details_to_props(mixed $details) : mixed
Parameters
- $details : mixed
get_basic_payment_method_title()
public
get_basic_payment_method_title() : string
Tags
Return values
stringget_brand()
public
get_brand([mixed $context = 'view' ]) : mixed
Parameters
- $context : mixed = 'view'
get_customer_id()
public
get_customer_id() : mixed
get_display_name()
public
get_display_name([mixed $deprecated = '' ]) : mixed
Parameters
- $deprecated : mixed = ''
get_environment()
public
get_environment() : mixed
get_format()
public
get_format() : mixed
get_formats()
Return formats used by the token to display a human readable title.
public
get_formats() : mixed
get_gateway_title()
public
get_gateway_title([mixed $context = 'view' ]) : mixed
Parameters
- $context : mixed = 'view'
get_html_classes()
public
get_html_classes() : mixed
get_payment_method_title()
Return a human readable representation of the payment method.
public
get_payment_method_title([string $format = '' ]) : mixed
Parameters
- $format : string = ''
Tags
get_props_data()
public
get_props_data() : mixed
get_stripe_data()
Returns an array of merged attributes comprised of the $stripe_data property.
public
get_stripe_data(object $instance) : mixed
Parameters
- $instance : object
has_expiration()
public
has_expiration() : mixed
save_payment_method()
public
save_payment_method() : mixed
set_brand()
public
set_brand(mixed $value) : mixed
Parameters
- $value : mixed
set_customer_id()
public
set_customer_id(mixed $value) : mixed
Parameters
- $value : mixed
set_environment()
public
set_environment(mixed $value) : mixed
Parameters
- $value : mixed
set_format()
public
set_format(mixed $value) : mixed
Parameters
- $value : mixed
set_gateway_title()
public
set_gateway_title(mixed $value) : mixed
Parameters
- $value : mixed
to_json()
Return a json array of data that represents the object.
public
to_json() : array<string|int, mixed>
Return values
array<string|int, mixed>token_exists()
public
static token_exists(mixed $token_id, mixed $user_id) : mixed
Parameters
- $token_id : mixed
- $user_id : mixed