func NewManager(
	config localconfig.Config,
	secret localconfig.PaymentSecret,
) *Manager {
	return &Manager{
		config:          config,
		xenditGateway:   xengateway.NewGateway(secret.Xendit),
		midtransGateway: midgateway.NewGateway(secret.Midtrans),
	}
}
NewManager creates a new payment manager
package manage
import (
	"context"
	"errors"
	"fmt"
	"github.com/rs/zerolog"
	"github.com/rs/zerolog/log"
	"github.com/imrenagi/go-payment"
	"github.com/imrenagi/go-payment/datastore"
	midgateway "github.com/imrenagi/go-payment/gateway/midtrans"
	xengateway "github.com/imrenagi/go-payment/gateway/xendit"
	"github.com/imrenagi/go-payment/invoice"
	"github.com/imrenagi/go-payment/subscription"
	"github.com/imrenagi/go-payment/util/localconfig"
)