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.

ParameterTypeDescription
$optionsSeQura\WC\Core\Extension\BusinessLogic\Domain\Order\Models\OrderRequest\OptionsOptions instance

Changelog

VersionDescription
3.0.0Introduced
4.0.0Removed

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.
  );
});