alipay

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GatewayUrl      = configs.Get().Alipay.GatewayUrl
	AppId           = configs.Get().Alipay.AppId
	AlipayPublicKey = configs.Get().Alipay.AlipayPublicKey
	AppPrivateKey   = configs.Get().Alipay.AppPrivateKey
	ApiAESKey       = configs.Get().Alipay.ApiAESKey
	ReturnUrl       = configs.Get().Alipay.ReturnUrl
	NotifyUrl       = configs.Get().Alipay.NotifyUrl
)

Functions

This section is empty.

Types

type Service

type Service interface {

	/**
	 * 根据提交参数生成电脑支付页面
	 */
	Pay(ctx context.Context, aliPayParam dto.AliPayParam) (string, error)

	/**
	 * 支付宝异步回调处理
	 */
	Notify(ctx context.Context, param url.Values) (string, error)

	/**
	 * 查询支付宝交易状态
	 * @param outTradeNo 商户订单编号
	 * @param tradeNo 支付宝交易编号
	 * @return 支付宝交易状态
	 */
	Query(ctx context.Context, outTradeNo, tradeNo string) (alipay.TradeStatus, error)

	/**
	 * 根据提交参数生成手机支付页面
	 */
	PhoneWebPay(ctx context.Context, aliPayParam dto.AliPayParam) (string, error)
	// contains filtered or unexported methods
}

支付宝支付Service

func New

func New() Service

Jump to

Keyboard shortcuts

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