프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
public is_valid_for_use ( ) : boolean | ||
리턴 | boolean |
public process_payment ( integer $order_id ) : array | ||
$order_id | integer | |
리턴 | array |