Documentation

WC_Gateway_Direct_Debit_Redsys extends WC_Payment_Gateway

Copyright: (C) 2013 - 2024 José Conti

Table of Contents

Properties

$notify_url  : mixed

Methods

__construct()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woo.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
admin_options()  : mixed
Package: WooCommerce Redsys Gateway Plugin URI: https://woo.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://woo.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://woo.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://woo.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

Properties

Methods

__construct()

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

public __construct() : mixed

admin_options()

Package: WooCommerce Redsys Gateway Plugin URI: https://woo.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://woo.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://woo.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://woo.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti

public warning_checkout_test_mode_directdebit() : mixed

        
On this page

Search results