WC_Gateway_Direct_Debit_Redsys
extends WC_Payment_Gateway
in package
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
$butonbgcolor
Constructor for the gateway.
public
string
$butonbgcolor
Button background color.
$butontextcolor
Constructor for the gateway.
public
string
$butontextcolor
Button text color.
$buttoncheckout
Constructor for the gateway.
public
string
$buttoncheckout
Button text at checkout.
$commercename
Constructor for the gateway.
public
string
$commercename
Commerce name.
$customer
Constructor for the gateway.
public
string
$customer
Customer ID.
$customtestsha256
Constructor for the gateway.
public
string
$customtestsha256
Custom test SHA-256 key.
$debug
Constructor for the gateway.
public
bool
$debug
Debug mode.
$descripredsys
Constructor for the gateway.
public
string
$descripredsys
Description for Redsys.
$description
Constructor for the gateway.
public
string
$description
Description of the gateway.
$directdebitredsyslanguage
Constructor for the gateway.
public
string
$directdebitredsyslanguage
Language for Direct Debit Redsys.
$enabled
Constructor for the gateway.
public
bool
$enabled
Whether the gateway is enabled.
$has_fields
Constructor for the gateway.
public
bool
$has_fields
Whether the gateway has fields.
$hideownsetting
Constructor for the gateway.
public
string
$hideownsetting
Hide own setting.
$icon
Constructor for the gateway.
public
string
$icon
Icon of the gateway.
$id
Constructor for the gateway.
public
string
$id
ID of the gateway.
$liveurl
Constructor for the gateway.
public
string
$liveurl
Live URL for the gateway.
$liveurlws
Constructor for the gateway.
public
string
$liveurlws
Live URL for the web service.
$log
Constructor for the gateway.
public
string
$log
Log for the gateway.
$method_description
Constructor for the gateway.
public
string
$method_description
Description of the payment method.
$method_title
Constructor for the gateway.
public
string
$method_title
Title of the payment method.
$multisitesttings
Constructor for the gateway.
public
string
$multisitesttings
Multisite settings.
$not_use_https
Constructor for the gateway.
public
bool
$not_use_https
Whether to use HTTPS.
$notify_url
Constructor for the gateway.
public
string
$notify_url
Notification URL.
$notify_url_not_https
Constructor for the gateway.
public
string
$notify_url_not_https
Notification URL without HTTPS.
$ownsetting
Constructor for the gateway.
public
string
$ownsetting
Own setting.
$secretsha256
Constructor for the gateway.
public
string
$secretsha256
Secret SHA-256 key.
$supports
Constructor for the gateway.
public
array<string|int, mixed>
$supports
Supported features.
$terminal
Constructor for the gateway.
public
string
$terminal
Terminal ID.
$testforuser
Constructor for the gateway.
public
bool
$testforuser
Test mode for user.
$testforuserid
Constructor for the gateway.
public
array<string|int, mixed>
$testforuserid
User IDs for test mode.
$testmode
Constructor for the gateway.
public
string
$testmode
Test mode setting.
$testsha256
Constructor for the gateway.
public
string
$testsha256
Test SHA-256 key.
$testshowgateway
Constructor for the gateway.
public
array<string|int, mixed>
$testshowgateway
Users to show gateway in test mode.
$testurl
Constructor for the gateway.
public
string
$testurl
Test URL for the gateway.
$testurlws
Constructor for the gateway.
public
string
$testurlws
Test URL for the web service.
$title
Constructor for the gateway.
public
string
$title
Title of the gateway.
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
boolcheck_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_ipn_response()
Check for valid server callback.
public
check_ipn_response() : 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.
check_user_test_mode()
Check User test mode
public
check_user_test_mode(int $userid) : bool
Parameters
- $userid : int
-
User ID.
Return values
boolgenerate_redsys_form()
Generate the redsys form
public
generate_redsys_form(int $order_id) : string
Parameters
- $order_id : int
-
Order ID.
Return values
stringget_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_sha256()
Get Redsys SHA256
public
get_redsys_sha256(string $user_id) : string
Parameters
- $user_id : string
-
User ID.
Return values
stringget_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
stringinit_form_fields()
Initialise Gateway Settings Form Fields
public
init_form_fields() : mixed
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
receipt_page()
Output for the order received page.
public
receipt_page(obj $order) : mixed
Parameters
- $order : obj
-
Order 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