sequra_create_order_request_merchant_options
Hook Filter
Filter the options.
This hook is no longer available since version 4.0.0.
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 |
| 4.0.0 | Removed |
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 15 days ago