Documentation

WC_Gateway_Googlepay_Checkout extends WC_Payment_Gateway

WC_Gateway_Googlepay_Checkout class.

Tags
extends

WC_Payment_Gateway

Table of Contents

Properties

$butonbgcolor  : string
Button background color for the gateway.
$butontextcolor  : string
Button text color for the gateway.
$button_color  : string
Button color for the gateway.
$button_locale  : string
Button locale for the gateway.
$button_type  : string
Button type for the gateway.
$buttoncheckout  : string
Button checkout for the gateway.
$commercename  : string
Commerce name for the gateway.
$customer  : string
Customer for the gateway.
$customtestsha256  : string
Custom test SHA256 for the gateway.
$debug  : bool
Debug for the gateway.
$descripredsys  : string
Description for the Redsys gateway.
$description  : string
Description for the gateway.
$enabled  : bool
Enabled for the gateway.
$g_merchant_id  : string
Merchant ID for the gateway.
$has_fields  : bool
$has_fields Whether or not the gateway has fields.
$hideownsetting  : string
Hide own setting for the gateway.
$icon  : string
The icon of the gateway
$id  : string
Constructor
$liveurl  : string
$liveurl The live URL for the gateway.
$log  : mixed
Log for the gateway.
$method_description  : string
Description for the gateway.
$method_title  : string
Title for the gateway.
$multisitesttings  : string
Multisite settings for the gateway.
$not_use_https  : bool
HTTPS for the gateway.
$notify_url  : string
Notify URL for the gateway.
$notify_url_not_https  : string
Notify URL without HTTPS for the gateway.
$ownsetting  : string
Own setting for the gateway.
$redsyslanguage  : string
Redsys language for the gateway.
$secretsha256  : string
Secret SHA256 for the gateway.
$supports  : array<string|int, mixed>
Supports for the gateway.
$terminal  : string
Terminal for the gateway.
$testforuser  : string
Test for user for the gateway.
$testforuserid  : string
Test for user ID for the gateway.
$testmode  : bool
Test mode for the gateway.
$testsha256  : string
Test SHA256 for the gateway.
$testshowgateway  : string
Test show gateway for the gateway.
$testurl  : string
$testurl The test URL for the gateway.
$time_load_button  : string
Time to load the button for the gateway.
$title  : string
Title for the gateway.
$xpay_origen  : string
XPay origin for the gateway.
$xpay_type  : string
XPay type for the gateway.

Methods

__construct()  : mixed
Constructor
admin_options()  : mixed
Admin Panel Options
ask_for_refund()  : bool|WP_Error
Ask for Refund
check_ipn_request_is_valid()  : mixed
Check redsys IPN validity
check_ipn_response()  : mixed
Check for GPay HTTP Notification
check_redsys_refund()  : bool
Check if the ping is from Redsys
check_user_test_mode()  : bool
Check if this gateway is enabled in test mode for a user
generate_redsys_form()  : mixed
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
init_form_fields()  : void
Initialise Gateway Settings Form Fields
is_valid_for_use()  : bool
Check if this gateway is enabled and available with the current currency.
load_google_pay_js()  : mixed
Load Google Pay JS
payment_fields()  : mixed
Payment_fields function.
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.
save_field_update_order_meta()  : mixed
Process the payment and return the result.
successful_request()  : mixed
Successful Payment.

Properties

Methods

ask_for_refund()

Ask for Refund

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

Order ID.

$transaction_id : string

Transaction ID.

$amount : float

Amount.

Return values
bool|WP_Error

check_redsys_refund()

Check if the ping is from Redsys

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

Order ID.

Return values
bool

check_user_test_mode()

Check if this gateway is enabled in test mode for a user

public check_user_test_mode(int $userid) : bool
Parameters
$userid : int

User ID.

Return values
bool

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

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

User ID.

$type : bool = 'rd'

Type.

Return values
string

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.

save_field_update_order_meta()

Process the payment and return the result.

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

Order ID.

successful_request()

Successful Payment.

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

Post data after notify.


        
On this page

Search results