BasePaymentGateway

Class BasePaymentGateway

Table of Contents

Properties

$name  : mixed
$payment_client  : WC_Stripe_Gateway
$payment_method  : WC_Payment_Gateway_Stripe
$supports_api_refund  : mixed

Methods

get_instance()  : mixed
init_payment_client()  : mixed
is_api_refund()  : mixed
process_offer_payment()  : bool
process_offer_refund()  : string|false
create_customer()  : Customer|WC_Payment_Token_Stripe|WP_Error|null
create_payment_intent()  : PaymentIntent|WP_Error

Properties

Methods

process_offer_payment()

public process_offer_payment(WC_Order $order, array<string|int, mixed> $product) : bool
Parameters
$order : WC_Order

The order.

$product : array<string|int, mixed>

The product.

Tags
throws
ApiErrorException

The exception.

Return values
bool

create_payment_intent()

private create_payment_intent(WC_Order $order, array<string|int, mixed> $product_data) : PaymentIntent|WP_Error
Parameters
$order : WC_Order

The order.

$product_data : array<string|int, mixed>

The product data.

Tags
throws
ApiErrorException

The exception.

Return values
PaymentIntent|WP_Error

        
On this page

Search results