BasePaymentGateway
in package
Class BasePaymentGateway
Table of Contents
Properties
- $name : mixed
- $payment_client : WC_Stripe_Payment
- $payment_method : WC_Payment_Gateway_Stripe
- $supports_api_refund : mixed
- $logger : mixed
Methods
- __construct() : mixed
- get_instance() : mixed
- init_payment_client() : mixed
- is_api_refund() : mixed
- process_offer_payment() : mixed
- process_offer_refund() : mixed
- create_customer() : mixed
- create_payment_intent() : mixed
Properties
$name
protected
mixed
$name
$payment_client
protected
WC_Stripe_Payment
$payment_client
$payment_method
protected
WC_Payment_Gateway_Stripe
$payment_method
$supports_api_refund
protected
mixed
$supports_api_refund
= true
$logger
private
mixed
$logger
Methods
__construct()
public
__construct(Cartflows_Logger $logger) : mixed
Parameters
- $logger : Cartflows_Logger
get_instance()
public
static get_instance() : mixed
init_payment_client()
public
init_payment_client(mixed $payment_method) : mixed
Parameters
- $payment_method : mixed
is_api_refund()
public
is_api_refund() : mixed
process_offer_payment()
public
process_offer_payment(WC_Order $order, array<string|int, mixed> $product) : mixed
Parameters
- $order : WC_Order
- $product : array<string|int, mixed>
process_offer_refund()
public
process_offer_refund(WC_Order $order, array<string|int, mixed> $offer_data) : mixed
Parameters
- $order : WC_Order
- $offer_data : array<string|int, mixed>
create_customer()
private
create_customer(WC_Order $order) : mixed
Parameters
- $order : WC_Order
create_payment_intent()
private
create_payment_intent(WC_Order $order, array<string|int, mixed> $product_data) : mixed
Parameters
- $order : WC_Order
- $product_data : array<string|int, mixed>