refactor payment platform canonicalization and order method consistency
Build docker and publish / build (20.15.1) (push) Failing after 8m1s

This commit is contained in:
2026-03-04 02:15:32 -08:00
parent 82626dd749
commit 0c544268e5
10 changed files with 160 additions and 23 deletions
@@ -0,0 +1,11 @@
package order
import paymentPlatform "github.com/perfect-panel/server/pkg/payment"
func canonicalOrderMethod(method string) string {
platform := paymentPlatform.ParsePlatform(method)
if platform == paymentPlatform.UNSUPPORTED {
return method
}
return platform.String()
}