Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
CheckoutSessions::get_create_params
Get the parameters for creating a checkout session.
Method of the class: CheckoutSessions{}
No Hooks.
Returns
Array. Parameters array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_create_params();
CheckoutSessions::get_create_params() CheckoutSessions::get create params code WC 10.8.1
protected function get_create_params() {
$params = AgenticCheckoutUtils::get_shared_params();
$params['items'] = array_merge(
$params['items'],
[
'required' => true,
'minItems' => 1,
]
);
return $params;
}