Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gateways = make(map[string]PaymentProcessor)
Functions ¶
This section is empty.
Types ¶
type PayMoney ¶
type PayMoney struct {
Amount float64
Currency model.CurrencyType
}
type PaymentProcessor ¶
type PaymentService ¶
func NewPaymentService ¶
func NewPaymentService(uuid string) (*PaymentService, error)
func (*PaymentService) CreatedPay ¶
func (s *PaymentService) CreatedPay() error
func (*PaymentService) HandleCallback ¶
func (*PaymentService) Pay ¶
func (s *PaymentService) Pay(tradeNo string, amount float64, user *model.User) (*types.PayRequest, error)
Click to show internal directories.
Click to hide internal directories.