epay

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Pid  string
	Url  string
	Key  string
	Type string
}

func NewClient

func NewClient(pid, url, key string, Type string) *Client

func (*Client) CreatePayUrl

func (c *Client) CreatePayUrl(order Order) string

func (*Client) QueryOrderStatus

func (c *Client) QueryOrderStatus(orderNo string) bool

func (*Client) VerifySign

func (c *Client) VerifySign(params map[string]string) bool

type Order

type Order struct {
	Name      string
	OrderNo   string
	Amount    float64
	SignType  string
	NotifyUrl string
	ReturnUrl string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL