WC_Gateway_MasterPass_Redsys
extends WC_Payment_Gateway
in package
Copyright: (C) 2013 - 2024 José Conti
Table of Contents
Properties
- $butonbgcolor : string
- The background color of the button.
- $butontextcolor : string
- The text color of the button.
- $buttoncheckout : string
- The button text for checkout.
- $commercename : string
- The commerce name of the gateway.
- $customer : string
- The customer number of the gateway.
- $debug : bool
- Indicates if the gateway is in debug mode.
- $descripredsys : string
- The description of the gateway for Redsys.
- $description : string
- The description of the gateway.
- $enabled : bool
- Indicates if the gateway is enabled.
- $has_fields : bool
- Indicates if the gateway has fields.
- $hashtype : string
- The hash type of the gateway.
- $hideownsetting : bool
- Indicates if the "NOT use Network" setting is hidden in subsites.
- $icon : string
- The icon of the gateway.
- $id : string
- The ID of the gateway.
- $liveurl : string
- The live URL of the gateway.
- $log : string
- The log of the gateway.
- $masterpasslanguage : string
- The language of the gateway.
- $method_description : string
- The description of the gateway.
- $method_title : string
- The title of the gateway.
- $multisitesttings : bool
- Indicates if the gateway is used in a multisite network.
- $notify_url : string
- The notify URL of the gateway.
- $ownsetting : bool
- Indicates if the gateway uses its own settings.
- $secretsha256 : string
- The secret passphrase SHA-256 of the gateway.
- $terminal : string
- The terminal number of the gateway.
- $testmode : bool
- Indicates if the gateway is in test mode.
- $testurl : string
- The test URL of the gateway.
- $title : string
- The title of the gateway.
- $woomasterpassurlko : string
- The URL for failed transactions of the gateway.
Methods
- __construct() : mixed
- Constructor for the gateway.
- admin_options() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- 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 Servired/RedSys HTTP Notification
- check_user_show_payment_method() : mixed
- Check if user is in test mode
- generate_masterpass_form() : mixed
- Generate the redsys form
- get_currencies() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- get_error_by_code() : mixed
- Get error message by error code
- get_masterpass_args() : mixed
- Get redsys Args for passing to the tpv
- get_masterpass_order() : mixed
- Get_masterpass_order function.
- 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() : mixed
- Process the payment and return the result
- receipt_page() : mixed
- Output for the order received page.
- show_payment_method() : mixed
- Show payment method
- successful_request() : mixed
- Successful Payment!
- warning_checkout_test_mode_masterpass() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
Properties
$butonbgcolor
The background color of the button.
public
string
$butonbgcolor
$butontextcolor
The text color of the button.
public
string
$butontextcolor
$buttoncheckout
The button text for checkout.
public
string
$buttoncheckout
$commercename
The commerce name of the gateway.
public
string
$commercename
$customer
The customer number of the gateway.
public
string
$customer
$debug
Indicates if the gateway is in debug mode.
public
bool
$debug
$descripredsys
The description of the gateway for Redsys.
public
string
$descripredsys
$description
The description of the gateway.
public
string
$description
$enabled
Indicates if the gateway is enabled.
public
bool
$enabled
$has_fields
Indicates if the gateway has fields.
public
bool
$has_fields
$hashtype
The hash type of the gateway.
public
string
$hashtype
$hideownsetting
Indicates if the "NOT use Network" setting is hidden in subsites.
public
bool
$hideownsetting
$icon
The icon of the gateway.
public
string
$icon
$id
The ID of the gateway.
public
string
$id
$liveurl
The live URL of the gateway.
public
string
$liveurl
$log
The log of the gateway.
public
string
$log
$masterpasslanguage
The language of the gateway.
public
string
$masterpasslanguage
$method_description
The description of the gateway.
public
string
$method_description
$method_title
The title of the gateway.
public
string
$method_title
$multisitesttings
Indicates if the gateway is used in a multisite network.
public
bool
$multisitesttings
$notify_url
The notify URL of the gateway.
public
string
$notify_url
$ownsetting
Indicates if the gateway uses its own settings.
public
bool
$ownsetting
$secretsha256
The secret passphrase SHA-256 of the gateway.
public
string
$secretsha256
$terminal
The terminal number of the gateway.
public
string
$terminal
$testmode
Indicates if the gateway is in test mode.
public
bool
$testmode
$testurl
The test URL of the gateway.
public
string
$testurl
$title
The title of the gateway.
public
string
$title
$woomasterpassurlko
The URL for failed transactions of the gateway.
public
string
$woomasterpassurlko
Methods
__construct()
Constructor for the gateway.
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
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_ipn_response()
Check for Servired/RedSys HTTP Notification
public
check_ipn_response() : mixed
check_user_show_payment_method()
Check if user is in test mode
public
check_user_show_payment_method([int $userid = false ]) : mixed
Parameters
- $userid : int = false
-
User ID.
generate_masterpass_form()
Generate the redsys form
public
generate_masterpass_form(mixed $order_id) : mixed
Parameters
- $order_id : mixed
-
Order ID.
get_currencies()
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
public
get_currencies() : mixed
get_error_by_code()
Get error message by error code
public
get_error_by_code(string $error_code) : mixed
Parameters
- $error_code : string
-
Error code.
get_masterpass_args()
Get redsys Args for passing to the tpv
public
get_masterpass_args(WC_Order $order) : mixed
Parameters
- $order : WC_Order
-
Order object.
get_masterpass_order()
Get_masterpass_order function.
public
get_masterpass_order(string $order_id) : mixed
Parameters
- $order_id : string
-
Order ID.
init_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) : mixed
Parameters
- $order_id : int
-
Order ID.
receipt_page()
Output for the order received page.
public
receipt_page(WC_Order $order) : mixed
Parameters
- $order : WC_Order
-
Order object.
show_payment_method()
Show payment method
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_masterpass()
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
public
warning_checkout_test_mode_masterpass() : mixed