Documentation

WC_Gateway_Direct_Debit_Redsys extends WC_Payment_Gateway

Copyright: (C) 2013 - 2024 José Conti

Table of Contents

Properties

$butonbgcolor  : string
Constructor for the gateway.
$butontextcolor  : string
Constructor for the gateway.
$buttoncheckout  : string
Constructor for the gateway.
$commercename  : string
Constructor for the gateway.
$customer  : string
Constructor for the gateway.
$customtestsha256  : string
Constructor for the gateway.
$debug  : bool
Constructor for the gateway.
$descripredsys  : string
Constructor for the gateway.
$description  : string
Constructor for the gateway.
$directdebitredsyslanguage  : string
Constructor for the gateway.
$enabled  : bool
Constructor for the gateway.
$has_fields  : bool
Constructor for the gateway.
$hideownsetting  : string
Constructor for the gateway.
$icon  : string
Constructor for the gateway.
$id  : string
Constructor for the gateway.
$liveurl  : string
Constructor for the gateway.
$liveurlws  : string
Constructor for the gateway.
$log  : string
Constructor for the gateway.
$method_description  : string
Constructor for the gateway.
$method_title  : string
Constructor for the gateway.
$multisitesttings  : string
Constructor for the gateway.
$not_use_https  : bool
Constructor for the gateway.
$notify_url  : string
Constructor for the gateway.
$notify_url_not_https  : string
Constructor for the gateway.
$ownsetting  : string
Constructor for the gateway.
$secretsha256  : string
Constructor for the gateway.
$supports  : array<string|int, mixed>
Constructor for the gateway.
$terminal  : string
Constructor for the gateway.
$testforuser  : bool
Constructor for the gateway.
$testforuserid  : array<string|int, mixed>
Constructor for the gateway.
$testmode  : string
Constructor for the gateway.
$testsha256  : string
Constructor for the gateway.
$testshowgateway  : array<string|int, mixed>
Constructor for the gateway.
$testurl  : string
Constructor for the gateway.
$testurlws  : string
Constructor for the gateway.
$title  : string
Constructor for the gateway.

Methods

__construct()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
admin_options()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
ask_for_refund()  : bool
Ask for refund.
check_ipn_request_is_valid()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
check_ipn_response()  : mixed
Check for valid server callback.
check_redsys_refund()  : mixed
Check if the pingback for refunds is valid
check_user_show_payment_method()  : mixed
Check if this gateway is enabled and available in the user's test mode selection
check_user_test_mode()  : bool
Check User test mode
generate_redsys_form()  : string
Generate the redsys form
get_redsys_args()  : array<string|int, mixed>
Get Redsys Args for passing to PP
get_redsys_sha256()  : string
Get Redsys SHA256
get_redsys_url_gateway()  : string
Get Redsys URL Gateway
init_form_fields()  : mixed
Initialise Gateway Settings Form Fields
is_valid_for_use()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
process_payment()  : array<string|int, mixed>
Process the payment and return the result
process_refund()  : bool
Process a refund if supported
receipt_page()  : mixed
Output for the order received page.
show_payment_method()  : mixed
Check if this gateway is enabled and available for current user.
successful_request()  : mixed
Successful Payment!
warning_checkout_test_mode_directdebit()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

Properties

Methods

__construct()

Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public __construct() : mixed

admin_options()

Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public admin_options() : mixed

ask_for_refund()

Ask for refund.

public ask_for_refund(int $order_id, string $transaction_id, float $amount) : bool
Parameters
$order_id : int

Order ID.

$transaction_id : string

Transaction ID.

$amount : float

Amount.

Return values
bool

check_ipn_request_is_valid()

Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public check_ipn_request_is_valid() : mixed

check_redsys_refund()

Check if the pingback for refunds is valid

public check_redsys_refund(int $order_id) : mixed
Parameters
$order_id : int

Order ID.

check_user_show_payment_method()

Check if this gateway is enabled and available in the user's test mode selection

public check_user_show_payment_method([int $userid = false ]) : mixed
Parameters
$userid : int = false

User ID.

generate_redsys_form()

Generate the redsys form

public generate_redsys_form(int $order_id) : string
Parameters
$order_id : int

Order ID.

Return values
string

get_redsys_args()

Get Redsys Args for passing to PP

public get_redsys_args(WC_Order $order) : array<string|int, mixed>
Parameters
$order : WC_Order

Order object.

Return values
array<string|int, mixed>

get_redsys_url_gateway()

Get Redsys URL Gateway

public get_redsys_url_gateway(string $user_id[, string $type = 'rd' ]) : string
Parameters
$user_id : string

User ID.

$type : string = 'rd'

Type.

Return values
string

is_valid_for_use()

Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public is_valid_for_use() : mixed

process_payment()

Process the payment and return the result

public process_payment(int $order_id) : array<string|int, mixed>
Parameters
$order_id : int

Order ID.

Return values
array<string|int, mixed>

process_refund()

Process a refund if supported

public process_refund(int $order_id[, float $amount = null ][, string $reason = '' ]) : bool
Parameters
$order_id : int

Order ID.

$amount : float = null

Refund amount.

$reason : string = ''

Refund reason.

Return values
bool

True or false based on success, or a WP_Error object

show_payment_method()

Check if this gateway is enabled and available for current user.

public show_payment_method(array<string|int, mixed> $available_gateways) : mixed
Parameters
$available_gateways : array<string|int, mixed>

Available gateways.

successful_request()

Successful Payment!

public successful_request(array<string|int, mixed> $posted) : mixed
Parameters
$posted : array<string|int, mixed>

Post data after notify.

warning_checkout_test_mode_directdebit()

Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public warning_checkout_test_mode_directdebit() : mixed

        
On this page

Search results