BuddyClients Docs

IntentHandler
in package

Fetches intents for checkout and confirmation.

Tags
since
1.0.15

Table of Contents

Properties

$intent  : object
The intent object.
$intent_class  : string
The object class of the intent.
$intent_id  : int
The ID of the BookingIntent.
$intent_type  : string
The type of intent.
$payment  : object
The BookingPayment object.
$payment_id  : int
The ID of the BookingPayment.

Methods

__construct()  : mixed
Constructor method.
fetch_object()  : mixed
Fetches the intent object from the database.

Properties

$intent_class

The object class of the intent.

public string $intent_class

$intent_id

The ID of the BookingIntent.

public int $intent_id

$intent_type

The type of intent.

public string $intent_type

Accepts 'booking', 'registration', and 'sponsor'.

$payment_id

The ID of the BookingPayment.

public int $payment_id

Methods

__construct()

Constructor method.

public __construct() : mixed
Tags
since
1.0.15

fetch_object()

Fetches the intent object from the database.

public static fetch_object(int $intent_id, string $type) : mixed
Parameters
$intent_id : int

The ID of the intent.

$type : string

The type of obejct ('intent' or 'payment').

Tags
since
1.0.15

        
On this page

Search results