woocommerce_sequra_get_order_ref_1
Hook
Filter
Filter the order ref 1.
Description
This filter allows modifying the order_ref_1
to be used to build the merchant reference payload attribute for the Order, OrderUpdate and DeliveryReport API calls. This can be used when the original Order ID is being changed with a custom value. For example, an active plugin that generates a custom sequence of characters to match the merchant's billing reference format.
Parameter | Type | Description | |
---|---|---|---|
$ref_1 | int string | Actual ref 1 value, usually the WooCommerce order ID | |
$order | WC_Order | The order |
Changelog
Version | Description |
---|---|
2.0.0 | Introduced |
Usage Example
add_filter('woocommerce_sequra_get_order_ref_1', function($ref_1, $order){
$ref_1 = '#AAA-00001'; // Your custom order id for the order.
return $ref_1;
}, 10, 2);
Updated about 1 month ago