sequra_create_order_request_merchant_options
Hook
Filter
Filter the options.
Description
This filter allows modifying the options
to be used to build the payload for the Order API calls.
Parameter | Type | Description |
---|---|---|
$options | SeQura\WC\Core\Extension\BusinessLogic\Domain\Order\Models\OrderRequest\Options | Options instance |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_create_order_request_merchant_options', function($options){
return new \SeQura\WC\Core\Extension\BusinessLogic\Domain\Order\Models\OrderRequest\Options(
$options->getHasJquery(), // Your custom value here.
$options->getUsesShippedCart(), // Your custom value here.
$options->getAddressesMayBeMissing(), // Your custom value here.
$options->getImmutableCustomerData(), // Your custom value here.
$options->get_desired_first_charge_on() // Your custom value here.
);
});
Updated about 1 month ago