Use get_order_number instead of order_id for the charge metadata so that users can customize order number.
Decision(s)
It is safe to replace order ID with get_order_number for the use case because it returns order ID by default. If user choose to customize order number using some plugins then it will return the order number in the new format.
Description
Use
get_order_number
instead oforder_id
for the charge metadata so that users can customize order number.Decision(s)
It is safe to replace order ID with
get_order_number
for the use case because it returns order ID by default. If user choose to customize order number using some plugins then it will return the order number in the new format.https://woocommerce.github.io/code-reference/classes/WC-Order.html#method_get_order_number
Rollback procedure
default rollback procedure