reepay / reepay-woocommerce-payment

Reepay Woocommerce Payment Plugin
https://wordpress.org/plugins/reepay-checkout-gateway/
6 stars 10 forks source link

Ability to customize how handleID's are formated #255

Closed Phratzz closed 1 year ago

Phratzz commented 1 year ago

The recent change in version 1.4.68 changed generation methods to use an order's ID instead of an order's NO can create circumstances where an reepay account is shared across multiple sites (such as a test account for a dev/test/staging setup, or across multiple different sites).

Here using the new format there is no way to differentiate the handleIDs based on which site it came from, alongside the problem that makes it a guarentee to have duplicate handleIDs across multiple WP instances (the failover does help here), before this could be achieved using different order number formats for different sites separate handleID formats was used

A few ways this could be achieved would be having a field where you could set the handleID format youself, with the default being: "order-{postID}" alternatively provide a filter which developers can hook into to modify the handleID themselves for any unique solutions they may need to maintain

Phratzz commented 1 year ago

As the change in 1.4.73 to revert to ordreNo, this issue is no longer relevant