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
Click to show internal directories.
Click to hide internal directories.