Class WC_Payment_Gateway
WooCommerce Payment Gateway class
Extended by individual payment gateways to handle payments.
- WC_Settings_API
- WC_Payment_Gateway
Package: WooCommerce\Abstracts
Category: Abstract Class
Author: WooThemes
Version: 2.1.0
Class: WC_Payment_Gateway
Extends: WC_Settings_API
Located at includes/abstracts/abstract-wc-payment-gateway.php
Methods summary
public
string
|
|
protected
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
#
payment_fields( )
If There are no payment fields show the description if set. Override this in your gateway if you have some. |
public
boolean
|
|
public
|
#
credit_card_form( array $args = array(), mixed $fields = array() )
Core credit card form which gateways can used if needed. |
Methods inherited from WC_Settings_API
admin_options()
,
display_errors()
,
format_settings()
,
generate_checkbox_html()
,
generate_decimal_html()
,
generate_multiselect_html()
,
generate_password_html()
,
generate_price_html()
,
generate_select_html()
,
generate_settings_html()
,
generate_text_html()
,
generate_textarea_html()
,
generate_title_html()
,
get_custom_attribute_html()
,
get_description_html()
,
get_form_fields()
,
get_option()
,
get_tooltip_html()
,
init_form_fields()
,
init_settings()
,
process_admin_options()
,
validate_checkbox_field()
,
validate_decimal_field()
,
validate_multiselect_field()
,
validate_password_field()
,
validate_price_field()
,
validate_select_field()
,
validate_settings_fields()
,
validate_text_field()
,
validate_textarea_field()
Magic methods summary
Properties summary
public
string
|
$id |
#
Payment method ID. |
public
string
|
$order_button_text |
#
Set if the place order button should be renamed on selection. |
public
string
|
$title |
#
Payment method title. |
public
string
|
$chosen |
#
Chosen payment method id. |
public
boolean
|
$has_fields |
#
True if the gateway shows fields on the checkout. |
public
array
|
$countries |
#
Array of countries this gateway is allowed for. |
public
string
|
$availability |
#
Available for all counties or specific. |
public
string
|
$enabled |
#
'yes' if the method is enabled. |
public
string
|
$icon |
#
Icon for the gateway. |
public
string
|
$description |
#
Description for the gateway. |
public
array
|
$supports |
#
Array of supported features such as 'default_credit_card_form' |
public
integer
|
$max_amount |
#
Maximum transaction amount, zero does not define a maximum |
Properties inherited from WC_Settings_API
$errors
,
$form_fields
,
$plugin_id
,
$sanitized_fields
,
$settings