add order and payment

This commit is contained in:
aditya.siregar
2024-06-04 02:59:31 +07:00
parent 8a23e72230
commit 4ae9079ff9
34 changed files with 810 additions and 1172 deletions
+25
View File
@@ -0,0 +1,25 @@
package config
type Midtrans struct {
Serverkey string `mapstructure:"server_key"`
Clientkey string `mapstructure:"client_key"`
Env int `mapstructure:"env"`
}
type MidtransConfig interface {
MidtransServerKey() string
MidtransClientKey() string
MidtranEnvType() int
}
func (c *Midtrans) MidtransServerKey() string {
return c.Serverkey
}
func (c *Midtrans) MidtransClientKey() string {
return c.Clientkey
}
func (c *Midtrans) MidtranEnvType() int {
return c.Env
}