refactor payment platform canonicalization and order method consistency
Build docker and publish / build (20.15.1) (push) Failing after 8m1s
Build docker and publish / build (20.15.1) (push) Failing after 8m1s
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user