WC_Gateway_Paygold_Redsys
extends WC_Payment_Gateway
in package
Copyright: (C) 2013 - 2024 José Conti
Table of Contents
Properties
- $bulkactions : array<string|int, mixed>
- Acciones en bloque.
- $butonbgcolor : string
- Color de fondo del botón.
- $butontextcolor : string
- Color del texto del botón.
- $buttoncheckout : string
- Botón de checkout.
- $commercename : string
- Nombre del comercio.
- $customer : string
- Información del cliente.
- $customtestsha256 : string
- Clave secreta de prueba SHA-256.
- $debug : bool
- Modo de depuración.
- $descripredsys : string
- Descripción de Redsys.
- $description : string
- Descripción del método de pago mostrado al cliente.
- $enabled : bool
- Indica si el método de pago está habilitado.
- $expiration : string
- Expiración.
- $hideownsetting : bool
- Indica si se debe ocultar la configuración propia.
- $icon : string
- Icono del gateway.
- $id : string
- Identificador del gateway.
- $liveurlws : string
- URL del servicio web en producción.
- $log : bool
- Registro de logs.
- $merchantgroup : string
- Grupo de comerciantes.
- $method_description : string
- Descripción del método de pago.
- $method_title : string
- Título del método de pago.
- $multisitesttings : array<string|int, mixed>
- Configuraciones multisite.
- $not_use_https : bool
- Indica si no se debe usar HTTPS.
- $notify_url : string
- URL de notificación.
- $notify_url_not_https : string
- URL de notificación sin HTTPS.
- $ownsetting : array<string|int, mixed>
- Configuración propia.
- $redsyslanguage : string
- Idioma de Redsys.
- $secretsha256 : string
- Clave secreta SHA-256.
- $showcheckout : bool
- Mostrar en checkout.
- $sms : string
- Mensaje SMS.
- $subject : string
- Asunto del mensaje.
- $supports : array<string|int, mixed>
- Funcionalidades soportadas.
- $terminal : string
- Terminal del comercio.
- $testforuser : bool
- Prueba para el usuario.
- $testforuserid : int
- ID de usuario para pruebas.
- $testmode : bool
- Modo de prueba.
- $testshowgateway : bool
- Mostrar gateway en modo de prueba.
- $title : string
- Título del método de pago mostrado al cliente.
- $transactionlimit : float
- Límite de transacción.
Methods
- __construct() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- add_bulk_actions() : mixed
- Add Bulk Actions
- admin_options() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- ask_for_refund() : mixed
- 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() : void
- Check for Paygold HTTP Notification
- check_redsys_refund() : mixed
- Check if the pingback is valid
- check_user_show_payment_method() : bool
- Check if user can show payment method.
- disable_paygold() : mixed
- Disable paygold if the cart total is greater than the limit
- get_redsys_sha256() : mixed
- Get Paygold SHA256
- get_redsys_url_gateway() : mixed
- Get Paygold URL
- init_form_fields() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- is_valid_for_use() : mixed
- Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
- paygold_bulk_actions_handler() : mixed
- Bulk Actions Handler
- process_payment() : mixed
- Process the payment and return the result
- process_refund() : mixed
- Process a refund if supported
- send_link_paygold() : mixed
- Send Link Paygold
- show_payment_method() : mixed
- Show payment method.
- show_payment_method_add_method() : mixed
- Unset Paygold in checkout
- successful_request() : mixed
- Successful Payment!
Properties
$bulkactions
Acciones en bloque.
public
array<string|int, mixed>
$bulkactions
$butonbgcolor
Color de fondo del botón.
public
string
$butonbgcolor
$butontextcolor
Color del texto del botón.
public
string
$butontextcolor
$buttoncheckout
Botón de checkout.
public
string
$buttoncheckout
$commercename
Nombre del comercio.
public
string
$commercename
$customer
Información del cliente.
public
string
$customer
$customtestsha256
Clave secreta de prueba SHA-256.
public
string
$customtestsha256
$debug
Modo de depuración.
public
bool
$debug
$descripredsys
Descripción de Redsys.
public
string
$descripredsys
$description
Descripción del método de pago mostrado al cliente.
public
string
$description
$enabled
Indica si el método de pago está habilitado.
public
bool
$enabled
$expiration
Expiración.
public
string
$expiration
$hideownsetting
Indica si se debe ocultar la configuración propia.
public
bool
$hideownsetting
$icon
Icono del gateway.
public
string
$icon
$id
Identificador del gateway.
public
string
$id
$liveurlws
URL del servicio web en producción.
public
string
$liveurlws
$log
Registro de logs.
public
bool
$log
$merchantgroup
Grupo de comerciantes.
public
string
$merchantgroup
$method_description
Descripción del método de pago.
public
string
$method_description
$method_title
Título del método de pago.
public
string
$method_title
$multisitesttings
Configuraciones multisite.
public
array<string|int, mixed>
$multisitesttings
$not_use_https
Indica si no se debe usar HTTPS.
public
bool
$not_use_https
$notify_url
URL de notificación.
public
string
$notify_url
$notify_url_not_https
URL de notificación sin HTTPS.
public
string
$notify_url_not_https
$ownsetting
Configuración propia.
public
array<string|int, mixed>
$ownsetting
$redsyslanguage
Idioma de Redsys.
public
string
$redsyslanguage
$secretsha256
Clave secreta SHA-256.
public
string
$secretsha256
$showcheckout
Mostrar en checkout.
public
bool
$showcheckout
$sms
Mensaje SMS.
public
string
$sms
$subject
Asunto del mensaje.
public
string
$subject
$supports
Funcionalidades soportadas.
public
array<string|int, mixed>
$supports
$terminal
Terminal del comercio.
public
string
$terminal
$testforuser
Prueba para el usuario.
public
bool
$testforuser
$testforuserid
ID de usuario para pruebas.
public
int
$testforuserid
$testmode
Modo de prueba.
public
bool
$testmode
$testshowgateway
Mostrar gateway en modo de prueba.
public
bool
$testshowgateway
$title
Título del método de pago mostrado al cliente.
public
string
$title
$transactionlimit
Límite de transacción.
public
float
$transactionlimit
Methods
__construct()
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
public
__construct() : mixed
add_bulk_actions()
Add Bulk Actions
public
static add_bulk_actions(array<string|int, mixed> $bulk_actions) : mixed
Parameters
- $bulk_actions : array<string|int, mixed>
-
Array of actions.
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) : mixed
Parameters
- $order_id : int
-
Order ID.
- $transaction_id : string
-
Transaction ID.
- $amount : float
-
Amount.
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 Paygold HTTP Notification
public
check_ipn_response() : void
check_redsys_refund()
Check if the pingback is valid
public
check_redsys_refund(string $order_id) : mixed
Parameters
- $order_id : string
-
Order ID.
check_user_show_payment_method()
Check if user can show payment method.
public
check_user_show_payment_method([int $userid = false ]) : bool
Parameters
- $userid : int = false
-
User ID.
Return values
booldisable_paygold()
Disable paygold if the cart total is greater than the limit
public
disable_paygold(array<string|int, mixed> $available_gateways) : mixed
Parameters
- $available_gateways : array<string|int, mixed>
-
Available gateways.
get_redsys_sha256()
Get Paygold SHA256
public
get_redsys_sha256(int $user_id) : mixed
Parameters
- $user_id : int
-
User ID.
get_redsys_url_gateway()
Get Paygold URL
public
get_redsys_url_gateway(int $user_id[, string $type = 'rd' ]) : mixed
Parameters
- $user_id : int
-
User ID.
- $type : string = 'rd'
-
Type.
init_form_fields()
Package: WooCommerce Redsys Gateway Plugin URI: https://woocommerce.com/products/redsys-gateway/ Copyright: (C) 2013 - 2024 José Conti
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
paygold_bulk_actions_handler()
Bulk Actions Handler
public
static paygold_bulk_actions_handler(string $redirect_to, string $doaction, array<string|int, mixed> $user_ids) : mixed
Parameters
- $redirect_to : string
-
Redirect URL.
- $doaction : string
-
Action.
- $user_ids : array<string|int, mixed>
-
Array of user IDs.
process_payment()
Process the payment and return the result
public
process_payment(int $order_id) : mixed
Parameters
- $order_id : int
-
Order ID.
process_refund()
Process a refund if supported
public
process_refund(int $order_id[, float $amount = null ][, string $reason = '' ]) : mixed
Parameters
- $order_id : int
-
Order ID.
- $amount : float = null
-
Refund amount.
- $reason : string = ''
-
Refund reason.
send_link_paygold()
Send Link Paygold
public
send_link_paygold(int $order_id) : mixed
Parameters
- $order_id : int
-
Order ID.
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.
show_payment_method_add_method()
Unset Paygold in checkout
public
show_payment_method_add_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>
-
wp_post.