Publish Docker image (Multi-arch) / Build & push (amd64) (push) Failing after 9m20s
Release (Linux, macOS, Windows) / Linux Release (push) Failing after 55m7s
Publish Docker image (Multi-arch) / Build & push (arm64) (push) Canceled after 0s
Release (Linux, macOS, Windows) / macOS Release (push) Canceled after 0s
Release (Linux, macOS, Windows) / Windows Release (push) Canceled after 0s
Publish Docker image (Multi-arch) / Create multi-arch manifests (push) Canceled after 0s
17 lines
950 B
Go
17 lines
950 B
Go
package constant
|
|
|
|
// WaffoPayMethod defines the display and API parameter mapping for Waffo payment methods.
|
|
type WaffoPayMethod struct {
|
|
Name string `json:"name"` // Frontend display name
|
|
Icon string `json:"icon"` // Frontend icon identifier: credit-card, apple, google
|
|
PayMethodType string `json:"payMethodType"` // Waffo API PayMethodType, can be comma-separated
|
|
PayMethodName string `json:"payMethodName"` // Waffo API PayMethodName, empty means auto-select by Waffo checkout
|
|
}
|
|
|
|
// DefaultWaffoPayMethods is the default list of supported payment methods.
|
|
var DefaultWaffoPayMethods = []WaffoPayMethod{
|
|
{Name: "Card", Icon: "/pay-card.png", PayMethodType: "CREDITCARD,DEBITCARD", PayMethodName: ""},
|
|
{Name: "Apple Pay", Icon: "/pay-apple.png", PayMethodType: "APPLEPAY", PayMethodName: "APPLEPAY"},
|
|
{Name: "Google Pay", Icon: "/pay-google.png", PayMethodType: "GOOGLEPAY", PayMethodName: "GOOGLEPAY"},
|
|
}
|