payment_gw_paythen
extends abstract_extension
in package
Extension: payment_gw_paythen - WooCommerce Paythen - ATP Custom Plugin for WordPress
Tags
Table of Contents
- ENABLE_OPTION = 'Paythen Payments'
- GATEWAY_ID = 'paythen'
- VERSION = '26.0605.1'
- $chatId : string
- $table : string
- __construct() : mixed
- constructor method
- addActionsAndFilters() : mixed
- Add filters and actions - called from main plugin
- admin_options_help() : mixed
- Add help tab on admin page
- admin_options_settings() : mixed
- register options on options_settings_page
- initialize() : void
- initialize method - called from main plugin
- paythen_confirmation() : null
- Payment confirmation
- paythen_description() : mixed
- Set the description
- paythen_max_installments() : mixed
- Set the max payment installments
- paythen_redirect() : mixed
- alter paythen redirect url
- paythen_validate() : null
- Validate the request
- remove_payment_gateways() : mixed
- remove a payment gateway - only paythen for payment plans
Constants
ENABLE_OPTION
public
string|array<string|int, mixed>|bool
ENABLE_OPTION
= 'Paythen Payments'
to set (or disable) default group display/switch
GATEWAY_ID
public
string
GATEWAY_ID
= 'paythen'
payment gateway id
VERSION
public
string
VERSION
= '26.0605.1'
extension version
Properties
$chatId
public
string
$chatId
chat id
$table
public
string
$table
sales order table
Methods
__construct()
constructor method
public
__construct(object $plugin) : mixed
Parameters
- $plugin : object
-
main plugin object
Return values
mixed —addActionsAndFilters()
Add filters and actions - called from main plugin
public
addActionsAndFilters() : mixed
Return values
mixed —admin_options_help()
Add help tab on admin page
public
admin_options_help() : mixed
Return values
mixed —admin_options_settings()
register options on options_settings_page
public
admin_options_settings() : mixed
Tags
Return values
mixed —initialize()
initialize method - called from main plugin
public
initialize() : void
Return values
void —paythen_confirmation()
Payment confirmation
public
paythen_confirmation(int $order_id) : null
Parameters
- $order_id : int
Return values
null —paythen_description()
Set the description
public
paythen_description(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —paythen_max_installments()
Set the max payment installments
public
paythen_max_installments(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —paythen_redirect()
alter paythen redirect url
public
paythen_redirect(mixed $location[, mixed $status = null ]) : mixed
Parameters
- $location : mixed
- $status : mixed = null
Return values
mixed —paythen_validate()
Validate the request
public
paythen_validate(array<string|int, mixed> $fields, mixed $errors) : null
Parameters
- $fields : array<string|int, mixed>
-
form fields
- $errors : mixed
Return values
null —remove_payment_gateways()
remove a payment gateway - only paythen for payment plans
public
remove_payment_gateways(mixed $gateways) : mixed
woocommerce_available_payment_gateways
Parameters
- $gateways : mixed