WC_Gateway_Redsys_Support
extends AbstractPaymentMethodType
in package
FinalYes
Dummy Payments Blocks integration
Tags
Table of Contents
Properties
- $name : string
- Payment method name/id/slug.
- $gateway : WC_Gateway_Redsys_Redsys
- The gateway instance.
Methods
- __construct() : mixed
- Constructor
- filter_tokens() : array<string|int, mixed>
- Filter the list of saved payment methods to only include tokens for the current payment method needed.
- get_payment_method_data() : array<string|int, mixed>
- Returns an array of key=>value pairs of data made available to the payment methods script.
- get_payment_method_script_handles() : array<string|int, mixed>
- Returns an array of scripts/handles to be registered for this payment method.
- initialize() : mixed
- Initializes the payment method type.
- is_active() : bool
- Returns if this payment method should be active. If false, the scripts will not be enqueued.
- is_preauth() : bool
- Return if the current payment method is a preauth
- is_subscription() : bool
- Return if the current payment method is a subscription
Properties
$name
Payment method name/id/slug.
protected
string
$name
= 'redsys'
$gateway
The gateway instance.
private
WC_Gateway_Redsys_Redsys
$gateway
Methods
__construct()
Constructor
public
__construct() : mixed
filter_tokens()
Filter the list of saved payment methods to only include tokens for the current payment method needed.
public
filter_tokens(array<string|int, mixed> $list_v, int $customer_id) : array<string|int, mixed>
Parameters
- $list_v : array<string|int, mixed>
-
List of saved payment methods.
- $customer_id : int
-
Customer ID.
Return values
array<string|int, mixed>get_payment_method_data()
Returns an array of key=>value pairs of data made available to the payment methods script.
public
get_payment_method_data() : array<string|int, mixed>
Return values
array<string|int, mixed>get_payment_method_script_handles()
Returns an array of scripts/handles to be registered for this payment method.
public
get_payment_method_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed>initialize()
Initializes the payment method type.
public
initialize() : mixed
is_active()
Returns if this payment method should be active. If false, the scripts will not be enqueued.
public
is_active() : bool
Return values
boolis_preauth()
Return if the current payment method is a preauth
public
is_preauth() : bool
Return values
boolis_subscription()
Return if the current payment method is a subscription
public
is_subscription() : bool