Свойство | Тип | Описание | |
---|---|---|---|
$log | Logger instance | ||
$log_enabled | Whether or not logging is enabled |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor for the gateway. | |
admin_options ( ) | Admin Panel Options. | |
can_refund_order ( WC_Order $order ) : boolean | Can the order be refunded via PayPal? | |
capture_payment ( integer $order_id ) | Capture payment when the order is changed from on-hold to complete or processing | |
get_icon ( ) : string | Get gateway icon. | |
get_transaction_url ( WC_Order $order ) : string | Get the transaction URL. | |
init_form_fields ( ) | Initialise Gateway Settings Form Fields. | |
is_valid_for_use ( ) : boolean | Check if this gateway is enabled and available in the user's country. | |
log ( string $message ) | Logging method. | |
process_payment ( integer $order_id ) : array | Process the payment and return the result. | |
process_refund ( integer $order_id, float $amount = null, string $reason = '' ) : boolean | Process a refund if supported. |
Метод | Описание | |
---|---|---|
get_icon_image ( string $country ) : array | Get PayPal images for a country. | |
get_icon_url ( string $country ) : string | Get the link for an icon based on country. | |
init_api ( ) | Init the API class and set the username/password etc. |
public admin_options ( ) |
public can_refund_order ( WC_Order $order ) : boolean | ||
$order | WC_Order | |
Результат | boolean |
public capture_payment ( integer $order_id ) | ||
$order_id | integer |
protected get_icon_image ( string $country ) : array | ||
$country | string | |
Результат | array | of image URLs |
protected get_icon_url ( string $country ) : string | ||
$country | string | |
Результат | string |
public get_transaction_url ( WC_Order $order ) : string | ||
$order | WC_Order | |
Результат | string |
protected init_api ( ) |
public init_form_fields ( ) |
public is_valid_for_use ( ) : boolean | ||
Результат | boolean |
public process_payment ( integer $order_id ) : array | ||
$order_id | integer | |
Результат | array |