omise / omise-woocommerce

Omise WooCommerce Plugin
https://docs.opn.ooo/woocommerce-plugin
MIT License
47 stars 27 forks source link

Use wc order number metadata #435

Closed aashishgurung closed 8 months ago

aashishgurung commented 8 months ago

Description

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.

https://woocommerce.github.io/code-reference/classes/WC-Order.html#method_get_order_number

Rollback procedure

default rollback procedure