mugglepay

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

mugglepay

注册商家账号

注册商家账号

开通麻瓜宝

MugglePay麻瓜宝,基于Telegram的电子钱包,匿名支付0手续费秒级到账。 打开Telegram开通

Documentation

Index

Constants

View Source
const Name = `mugglepay`

Variables

This section is empty.

Functions

func MappingStatus

func MappingStatus(status string, result *config.Result)

MappingStatus Order Status https://github.com/MugglePay/MugglePay/blob/master/API/basic/OrderStatus.md

func New

func New() payment.Driver

Types

type Mugglepay

type Mugglepay struct {
	// contains filtered or unexported fields
}

func (*Mugglepay) Client

func (a *Mugglepay) Client() *mugglepay.Mugglepay

func (*Mugglepay) IsSupported added in v0.3.0

func (a *Mugglepay) IsSupported(s config.Support) bool

func (*Mugglepay) PayNotify

func (a *Mugglepay) PayNotify(ctx echo.Context) error

PayNotify 付款回调处理 documentation https://github.com/MugglePay/MugglePay/blob/master/API/order/PaymentCallback.md

func (*Mugglepay) PayQuery

func (a *Mugglepay) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

PayQuery documentation: https://github.com/MugglePay/MugglePay/blob/master/API/order/GetOrder.md

func (*Mugglepay) RefundNotify

func (a *Mugglepay) RefundNotify(ctx echo.Context) error

RefundNotify 退款回调处理

func (*Mugglepay) RefundQuery

func (a *Mugglepay) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

RefundQuery 退款查询

func (*Mugglepay) SetAccount

func (a *Mugglepay) SetAccount(account *config.Account) payment.Driver

func (*Mugglepay) SetNotifyCallback

func (a *Mugglepay) SetNotifyCallback(callback func(echo.Context) error) payment.Driver

func (*Mugglepay) VerifySign

func (a *Mugglepay) VerifySign(ctx echo.Context) error

Jump to

Keyboard shortcuts

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