Documentation ¶
Index ¶
- Constants
- func DecryptOpenDataToBodyMap(encryptedData, secretKey string) (bm gopay.BodyMap, err error)
- func DecryptOpenDataToStruct(encryptedData, secretKey string, beanPtr interface{}) (err error)
- func FormatPrivateKey(privateKey string) (pKey string)
- func FormatPublicKey(publicKey string) (pKey string)
- func FormatURLParam(body gopay.BodyMap) (urlParam string)
- func GetCertSN(certPathOrData interface{}) (sn string, err error)
- func GetRootCertSN(rootCertPathOrData interface{}) (sn string, err error)
- func GetRsaSign(bm gopay.BodyMap, signType string, t PKCSType, privateKey string) (sign string, err error)
- func ParseNotifyByURLValues(value url.Values) (bm gopay.BodyMap, err error)
- func ParseNotifyToBodyMap(req *http.Request) (bm gopay.BodyMap, err error)
- func VerifySign(aliPayPublicKey string, notifyBean interface{}) (ok bool, err error)
- func VerifySignWithCert(aliPayPublicKeyCert, notifyBean interface{}) (ok bool, err error)
- func VerifySyncSign(aliPayPublicKey, signData, sign string) (ok bool, err error)
- func VerifySyncSignWithCert(aliPayPublicKeyCert interface{}, signData, sign string) (ok bool, err error)
- type AuthTokenApp
- type Client
- func (a *Client) AutoVerifySign(aliPayPkContent []byte)
- func (a *Client) DataBillBalanceQuery(bm gopay.BodyMap) (aliRsp *DataBillBalanceQueryResponse, err error)
- func (a *Client) DataBillDownloadUrlQuery(bm gopay.BodyMap) (aliRsp *DataBillDownloadUrlQueryResponse, err error)
- func (a *Client) FundAccountQuery(bm gopay.BodyMap) (aliRsp *FundAccountQueryResponse, err error)
- func (a *Client) FundAuthOperationCancel(bm gopay.BodyMap) (aliRsp *FundAuthOperationCancelResponse, err error)
- func (a *Client) FundAuthOperationDetailQuery(bm gopay.BodyMap) (aliRsp *FundAuthOperationDetailQueryResponse, err error)
- func (a *Client) FundAuthOrderAppFreeze(bm gopay.BodyMap) (payParam string, err error)
- func (a *Client) FundAuthOrderFreeze(bm gopay.BodyMap) (aliRsp *FundAuthOrderFreezeResponse, err error)
- func (a *Client) FundAuthOrderUnfreeze(bm gopay.BodyMap) (aliRsp *FundAuthOrderUnfreezeResponse, err error)
- func (a *Client) FundAuthOrderVoucherCreate(bm gopay.BodyMap) (aliRsp *FundAuthOrderVoucherCreateResponse, err error)
- func (a *Client) FundBatchClose(bm gopay.BodyMap) (aliRsp *FundBatchCloseResponse, err error)
- func (a *Client) FundBatchCreate(bm gopay.BodyMap) (aliRsp *FundBatchCreateResponse, err error)
- func (a *Client) FundBatchDetailQuery(bm gopay.BodyMap) (aliRsp *FundBatchDetailQueryResponse, err error)
- func (a *Client) FundTransAppPay(bm gopay.BodyMap) (aliRsp *FundTransAppPayResponse, err error)
- func (a *Client) FundTransCommonQuery(bm gopay.BodyMap) (aliRsp *FundTransCommonQueryResponse, err error)
- func (a *Client) FundTransOrderQuery(bm gopay.BodyMap) (aliRsp *FundTransOrderQueryResponse, err error)
- func (a *Client) FundTransPayeeBindQuery(bm gopay.BodyMap) (aliRsp *FundTransPayeeBindQueryRsp, err error)
- func (a *Client) FundTransRefund(bm gopay.BodyMap) (aliRsp *FundTransRefundResponse, err error)
- func (a *Client) FundTransUniTransfer(bm gopay.BodyMap) (aliRsp *FundTransUniTransferResponse, err error)
- func (a *Client) GetRequestSignParam(bm gopay.BodyMap, method string) (string, error)
- func (a *Client) MerchantItemFileUpload() (aliRsp *MerchantItemFileUploadRsp, err error)
- func (a *Client) OpenAppQrcodeCreate(bm gopay.BodyMap) (aliRsp *OpenAppQrcodeCreateRsp, err error)
- func (a *Client) OpenAuthTokenApp(bm gopay.BodyMap) (aliRsp *OpenAuthTokenAppResponse, err error)
- func (a *Client) PostAliPayAPISelf(bm gopay.BodyMap, method string, aliRsp interface{}) (err error)
- func (a *Client) PostAliPayAPISelfV2(bm gopay.BodyMap, method string, aliRsp interface{}) (err error)
- func (a *Client) PublicCertDownload(bm gopay.BodyMap) (aliRsp *PublicCertDownloadRsp, err error)
- func (a *Client) RequestParam(bm gopay.BodyMap, method string) (string, error)
- func (a *Client) SetAliPayPublicCertSN(aliPayPublicCertSN string) (client *Client)
- func (a *Client) SetAliPayRootCertSN(aliPayRootCertSN string) (client *Client)
- func (a *Client) SetAppAuthToken(appAuthToken string) (client *Client)
- func (a *Client) SetAppCertSN(appCertSN string) (client *Client)
- func (a *Client) SetCertSnByContent(appCertContent, aliPayRootCertContent, aliPayPublicCertContent []byte) (err error)
- func (a *Client) SetCertSnByPath(appCertPath, aliPayRootCertPath, aliPayPublicCertPath string) (err error)
- func (a *Client) SetCharset(charset string) (client *Client)
- func (a *Client) SetLocation(name string) (client *Client)
- func (a *Client) SetNotifyUrl(url string) (client *Client)
- func (a *Client) SetPrivateKeyType(t PKCSType) (client *Client)
- func (a *Client) SetReturnUrl(url string) (client *Client)
- func (a *Client) SetSignType(signType string) (client *Client)
- func (a *Client) SystemOauthToken(bm gopay.BodyMap) (aliRsp *SystemOauthTokenResponse, err error)
- func (a *Client) TradeAdvanceConsult(bm gopay.BodyMap) (aliRsp *TradeAdvanceConsultRsp, err error)
- func (a *Client) TradeAppPay(bm gopay.BodyMap) (payParam string, err error)
- func (a *Client) TradeCancel(bm gopay.BodyMap) (aliRsp *TradeCancelResponse, err error)
- func (a *Client) TradeClose(bm gopay.BodyMap) (aliRsp *TradeCloseResponse, err error)
- func (a *Client) TradeCreate(bm gopay.BodyMap) (aliRsp *TradeCreateResponse, err error)
- func (a *Client) TradeFastPayRefundQuery(bm gopay.BodyMap) (aliRsp *TradeFastpayRefundQueryResponse, err error)
- func (a *Client) TradeOrderInfoSync(bm gopay.BodyMap) (aliRsp *TradeOrderInfoSyncRsp, err error)
- func (a *Client) TradeOrderSettle(bm gopay.BodyMap) (aliRsp *TradeOrderSettleResponse, err error)
- func (a *Client) TradePagePay(bm gopay.BodyMap) (payUrl string, err error)
- func (a *Client) TradePageRefund(bm gopay.BodyMap) (aliRsp *TradePageRefundResponse, err error)
- func (a *Client) TradePay(bm gopay.BodyMap) (aliRsp *TradePayResponse, err error)
- func (a *Client) TradePrecreate(bm gopay.BodyMap) (aliRsp *TradePrecreateResponse, err error)
- func (a *Client) TradeQuery(bm gopay.BodyMap) (aliRsp *TradeQueryResponse, err error)
- func (a *Client) TradeRefund(bm gopay.BodyMap) (aliRsp *TradeRefundResponse, err error)
- func (a *Client) TradeWapPay(bm gopay.BodyMap) (payUrl string, err error)
- func (a *Client) UserAgreementPageSign(bm gopay.BodyMap) (aliRsp *UserAgreementPageSignRsp, err error)
- func (a *Client) UserAgreementPageUnSign(bm gopay.BodyMap) (aliRsp *UserAgreementPageUnSignRsp, err error)
- func (a *Client) UserAgreementQuery(bm gopay.BodyMap) (aliRsp *UserAgreementQueryRsp, err error)
- func (a *Client) UserCertifyOpenCertify(bm gopay.BodyMap) (certifyUrl string, err error)
- func (a *Client) UserCertifyOpenInit(bm gopay.BodyMap) (aliRsp *UserCertifyOpenInitResponse, err error)
- func (a *Client) UserCertifyOpenQuery(bm gopay.BodyMap) (aliRsp *UserCertifyOpenQueryResponse, err error)
- func (a *Client) UserInfoAuth(bm gopay.BodyMap) (aliRsp *UserInfoAuthResponse, err error)
- func (a *Client) UserInfoShare(authToken string) (aliRsp *UserInfoShareResponse, err error)
- func (a *Client) ZhimaCreditScoreGet(bm gopay.BodyMap) (aliRsp *ZhimaCreditScoreGetResponse, err error)
- type DataBillBalanceQuery
- type DataBillBalanceQueryResponse
- type DataBillDownloadUrlQuery
- type DataBillDownloadUrlQueryResponse
- type ErrorResponse
- type ExtCardInfo
- type FundAccountQuery
- type FundAccountQueryResponse
- type FundAuthOperationCancel
- type FundAuthOperationCancelResponse
- type FundAuthOperationDetailQuery
- type FundAuthOperationDetailQueryResponse
- type FundAuthOrderAppFreeze
- type FundAuthOrderAppFreezeResponse
- type FundAuthOrderFreeze
- type FundAuthOrderFreezeResponse
- type FundAuthOrderUnfreeze
- type FundAuthOrderUnfreezeResponse
- type FundAuthOrderVoucherCreate
- type FundAuthOrderVoucherCreateResponse
- type FundBatchClose
- type FundBatchCloseResponse
- type FundBatchCreate
- type FundBatchCreateResponse
- type FundBatchDetailQuery
- type FundBatchDetailQueryResponse
- type FundBill
- type FundBillListInfo
- type FundTransAppPay
- type FundTransAppPayResponse
- type FundTransCommonQuery
- type FundTransCommonQueryResponse
- type FundTransOrderQuery
- type FundTransOrderQueryResponse
- type FundTransPayeeBindQuery
- type FundTransPayeeBindQueryRsp
- type FundTransRefund
- type FundTransRefundResponse
- type FundTransToaccountTransferResponse
- type FundTransUniTransferResponse
- type MerchantItemFileUpload
- type MerchantItemFileUploadRsp
- type MonitorHeartbeatSynRes
- type MonitorHeartbeatSynResponse
- type NotifyRequest
- type OauthTokenInfo
- type OpenApiRoyaltyDetailInfoPojo
- type OpenAppQrcodeCreate
- type OpenAppQrcodeCreateRsp
- type OpenAuthTokenAppResponse
- type PKCSType
- type PublicCertDownload
- type PublicCertDownloadRsp
- type RefundPresetPaytool
- type RefundRoyalty
- type ScoreGet
- type SystemOauthTokenResponse
- type Token
- type TradeAdvanceConsult
- type TradeAdvanceConsultRsp
- type TradeCancel
- type TradeCancelResponse
- type TradeClose
- type TradeCloseResponse
- type TradeCreate
- type TradeCreateResponse
- type TradeFastpayRefundQueryResponse
- type TradeFundBill
- type TradeOrderInfoSync
- type TradeOrderInfoSyncRsp
- type TradeOrderSettle
- type TradeOrderSettleResponse
- type TradePageRefund
- type TradePageRefundResponse
- type TradePay
- type TradePayResponse
- type TradePrecreate
- type TradePrecreateResponse
- type TradeQuery
- type TradeQueryResponse
- type TradeRefund
- type TradeRefundQuery
- type TradeRefundResponse
- type TransToaccountTransfer
- type TransUniTransfer
- type UserAgreementPageSign
- type UserAgreementPageSignRsp
- type UserAgreementPageUnSignRsp
- type UserAgreementQuery
- type UserAgreementQueryRsp
- type UserCertifyOpenInit
- type UserCertifyOpenInitResponse
- type UserCertifyOpenQuery
- type UserCertifyOpenQueryResponse
- type UserInfoAuthResponse
- type UserInfoShare
- type UserInfoShareResponse
- type UserPhone
- type VoucherDetail
- type WaitRepaymentOrderInfo
- type ZhimaCreditScoreGetResponse
Constants ¶
const ( LocationShanghai = "Asia/Shanghai" PKCS1 PKCSType = 1 // 非Java PKCS8 PKCSType = 2 // Java RSA = "RSA" RSA2 = "RSA2" )
Variables ¶
This section is empty.
Functions ¶
func DecryptOpenDataToBodyMap ¶
DecryptOpenDataToBodyMap 解密支付宝开放数据到 BodyMap
encryptedData:包括敏感数据在内的完整用户信息的加密数据 secretKey:AES密钥,支付宝管理平台配置 文档:https://opendocs.alipay.com/mini/introduce/aes 文档:https://opendocs.alipay.com/open/common/104567
func DecryptOpenDataToStruct ¶
DecryptOpenDataToStruct 解密支付宝开放数据到 结构体
encryptedData:包括敏感数据在内的完整用户信息的加密数据 secretKey:AES密钥,支付宝管理平台配置 beanPtr:需要解析到的结构体指针 文档:https://opendocs.alipay.com/mini/introduce/aes 文档:https://opendocs.alipay.com/open/common/104567
func FormatPrivateKey ¶
FormatPrivateKey 格式化 普通应用秘钥
func FormatPublicKey ¶
FormatPublicKey 格式化 普通支付宝公钥
func GetCertSN ¶
GetCertSN 获取证书序列号SN
certPathOrData.509证书文件路径(appCertPublicKey.crt、alipayCertPublicKey_RSA2.crt) 或证书 buffer 返回 sn:证书序列号(app_cert_sn、alipay_cert_sn) 返回 err:error 信息
func GetRootCertSN ¶
GetRootCertSN 获取root证书序列号SN
rootCertPathOrData.509证书文件路径(alipayRootCert.crt) 或文件 buffer 返回 sn:证书序列号(alipay_root_cert_sn) 返回 err:error 信息
func GetRsaSign ¶
func GetRsaSign(bm gopay.BodyMap, signType string, t PKCSType, privateKey string) (sign string, err error)
获取支付宝参数签名
bm:签名参数 signType:签名类型,alipay.RSA 或 alipay.RSA2 t:私钥类型,alipay.PKCS1 或 alipay.PKCS1,默认 PKCS1 privateKey:应用私钥,支持PKCS1和PKCS8
func ParseNotifyByURLValues ¶
通过 url.Values 解析支付宝支付异步通知的参数到Struct
value:url.Values 返回参数notifyReq:Notify请求的参数 返回参数err:错误信息 文档:https://opendocs.alipay.com/open/203/105286
func ParseNotifyToBodyMap ¶
解析支付宝支付异步通知的参数到BodyMap
req:*http.Request 返回参数bm:Notify请求的参数 返回参数err:错误信息 文档:https://opendocs.alipay.com/open/203/105286
func VerifySign ¶
VerifySign 支付宝异步通知验签
注意:APP支付,手机网站支付,电脑网站支付 暂不支持同步返回验签 aliPayPublicKey:支付宝平台获取的支付宝公钥 notifyBean:此参数为异步通知解析的结构体或BodyMap:notifyReq 或 bm,推荐通 BodyMap 验签 返回参数ok:是否验签通过 返回参数err:错误信息 验签文档:https://opendocs.alipay.com/open/200/106120
func VerifySignWithCert ¶
VerifySignWithCert 支付宝异步通知验签
注意:APP支付,手机网站支付,电脑网站支付 暂不支持同步返回验签 aliPayPublicKeyCert:支付宝公钥证书存放路径 alipayCertPublicKey_RSA2.crt 或文件内容[]byte notifyBean:此参数为异步通知解析的结构体或BodyMap:notifyReq 或 bm,推荐通 BodyMap 验签 返回参数ok:是否验签通过 返回参数err:错误信息 验签文档:https://opendocs.alipay.com/open/200/106120
func VerifySyncSign ¶
VerifySyncSign 支付宝同步返回验签
注意:APP支付,手机网站支付,电脑网站支付,身份认证开始认证 暂不支持同步返回验签 aliPayPublicKey:支付宝平台获取的支付宝公钥 signData:待验签参数,aliRsp.SignData sign:待验签sign,aliRsp.Sign 返回参数ok:是否验签通过 返回参数err:错误信息 验签文档:https://opendocs.alipay.com/open/200/106120
func VerifySyncSignWithCert ¶
func VerifySyncSignWithCert(aliPayPublicKeyCert interface{}, signData, sign string) (ok bool, err error)
VerifySyncSignWithCert 支付宝同步返回验签
注意:APP支付,手机网站支付,电脑网站支付,身份认证开始认证 暂不支持同步返回验签 aliPayPublicKeyCert:支付宝公钥证书存放路径 alipayCertPublicKey_RSA2.crt 或文件内容[]byte signData:待验签参数,aliRsp.SignData sign:待验签sign,aliRsp.Sign 返回参数ok:是否验签通过 返回参数err:错误信息 验签文档:https://opendocs.alipay.com/open/200/106120
Types ¶
type AuthTokenApp ¶ added in v1.5.45
type AuthTokenApp struct { ErrorResponse UserId string `json:"user_id,omitempty"` AuthAppId string `json:"auth_app_id,omitempty"` AppAuthToken string `json:"app_auth_token,omitempty"` AppRefreshToken string `json:"app_refresh_token,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` ReExpiresIn int64 `json:"re_expires_in,omitempty"` Tokens []*Token `json:"tokens,omitempty"` }
type Client ¶
type Client struct { AppId string PrivateKeyType PKCSType PrivateKey string LocationName string AppCertSN string AliPayPublicCertSN string AliPayRootCertSN string ReturnUrl string NotifyUrl string Charset string SignType string AppAuthToken string IsProd bool DebugSwitch gopay.DebugSwitch // contains filtered or unexported fields }
func NewClient ¶
初始化支付宝客户端
注意:如果使用支付宝公钥证书验签,请设置 支付宝根证书SN(client.SetAlipayRootCertSN())、应用公钥证书SN(client.SetAppCertSN()) appId:应用ID privateKey:应用私钥,支持PKCS1和PKCS8 isProd:是否是正式环境
func (*Client) AutoVerifySign ¶ added in v1.5.45
开启请求完自动验签功能(默认不开启,推荐开启,只支持证书模式)
注意:只支持证书模式 aliPayPkContent:支付宝公钥证书文件内容[]byte
func (*Client) DataBillBalanceQuery ¶
func (a *Client) DataBillBalanceQuery(bm gopay.BodyMap) (aliRsp *DataBillBalanceQueryResponse, err error)
Deprecated 支付宝已不再支持 alipay.data.bill.balance.query(支付宝商家账户当前余额查询)
文档地址:https://opendocs.alipay.com/apis/api_15/alipay.data.bill.balance.query
func (*Client) DataBillDownloadUrlQuery ¶
func (a *Client) DataBillDownloadUrlQuery(bm gopay.BodyMap) (aliRsp *DataBillDownloadUrlQueryResponse, err error)
alipay.data.dataservice.bill.downloadurl.query(查询对账单下载地址)
文档地址:https://opendocs.alipay.com/apis/api_15/alipay.data.dataservice.bill.downloadurl.query
func (*Client) FundAccountQuery ¶
func (a *Client) FundAccountQuery(bm gopay.BodyMap) (aliRsp *FundAccountQueryResponse, err error)
alipay.fund.account.query(支付宝资金账户资产查询接口)
文档地址:https://opendocs.alipay.com/apis/api_28/alipay.fund.account.query
func (*Client) FundAuthOperationCancel ¶
func (a *Client) FundAuthOperationCancel(bm gopay.BodyMap) (aliRsp *FundAuthOperationCancelResponse, err error)
alipay.fund.auth.operation.cancel(资金授权撤销接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.operation.cancel
func (*Client) FundAuthOperationDetailQuery ¶
func (a *Client) FundAuthOperationDetailQuery(bm gopay.BodyMap) (aliRsp *FundAuthOperationDetailQueryResponse, err error)
alipay.fund.auth.operation.detail.query(资金授权操作查询接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.operation.detail.query
func (*Client) FundAuthOrderAppFreeze ¶
alipay.fund.auth.order.app.freeze(线上资金授权冻结接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.order.app.freeze
func (*Client) FundAuthOrderFreeze ¶
func (a *Client) FundAuthOrderFreeze(bm gopay.BodyMap) (aliRsp *FundAuthOrderFreezeResponse, err error)
alipay.fund.auth.order.freeze(资金授权冻结接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.order.freeze
func (*Client) FundAuthOrderUnfreeze ¶
func (a *Client) FundAuthOrderUnfreeze(bm gopay.BodyMap) (aliRsp *FundAuthOrderUnfreezeResponse, err error)
alipay.fund.auth.order.unfreeze(资金授权解冻接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.order.unfreeze
func (*Client) FundAuthOrderVoucherCreate ¶
func (a *Client) FundAuthOrderVoucherCreate(bm gopay.BodyMap) (aliRsp *FundAuthOrderVoucherCreateResponse, err error)
alipay.fund.auth.order.voucher.create(资金授权发码接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.auth.order.voucher.create
func (*Client) FundBatchClose ¶
func (a *Client) FundBatchClose(bm gopay.BodyMap) (aliRsp *FundBatchCloseResponse, err error)
alipay.fund.batch.close(批量转账关单接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.batch.close
func (*Client) FundBatchCreate ¶
func (a *Client) FundBatchCreate(bm gopay.BodyMap) (aliRsp *FundBatchCreateResponse, err error)
alipay.fund.batch.create(批次下单接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.batch.create
func (*Client) FundBatchDetailQuery ¶
func (a *Client) FundBatchDetailQuery(bm gopay.BodyMap) (aliRsp *FundBatchDetailQueryResponse, err error)
alipay.fund.batch.detail.query(批量转账明细查询接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.batch.detail.query
func (*Client) FundTransAppPay ¶
func (a *Client) FundTransAppPay(bm gopay.BodyMap) (aliRsp *FundTransAppPayResponse, err error)
alipay.fund.trans.app.pay(现金红包无线支付接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.trans.app.pay
func (*Client) FundTransCommonQuery ¶
func (a *Client) FundTransCommonQuery(bm gopay.BodyMap) (aliRsp *FundTransCommonQueryResponse, err error)
alipay.fund.trans.common.query(转账业务单据查询接口)
文档地址:https://opendocs.alipay.com/apis/api_28/alipay.fund.trans.common.query
func (*Client) FundTransOrderQuery ¶
func (a *Client) FundTransOrderQuery(bm gopay.BodyMap) (aliRsp *FundTransOrderQueryResponse, err error)
alipay.fund.trans.order.query(查询转账订单接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.trans.order.query
func (*Client) FundTransPayeeBindQuery ¶ added in v1.5.45
func (a *Client) FundTransPayeeBindQuery(bm gopay.BodyMap) (aliRsp *FundTransPayeeBindQueryRsp, err error)
alipay.fund.trans.payee.bind.query(资金收款账号绑定关系查询) 文档地址: https://opendocs.alipay.com/apis/020tl1
func (*Client) FundTransRefund ¶
func (a *Client) FundTransRefund(bm gopay.BodyMap) (aliRsp *FundTransRefundResponse, err error)
alipay.fund.trans.refund(资金退回接口) 文档地址: https://opendocs.alipay.com/apis/api_28/alipay.fund.trans.refund
func (*Client) FundTransUniTransfer ¶
func (a *Client) FundTransUniTransfer(bm gopay.BodyMap) (aliRsp *FundTransUniTransferResponse, err error)
alipay.fund.trans.uni.transfer(单笔转账接口)
文档地址:https://opendocs.alipay.com/apis/api_28/alipay.fund.trans.uni.transfer
func (*Client) MerchantItemFileUpload ¶ added in v1.5.45
func (a *Client) MerchantItemFileUpload() (aliRsp *MerchantItemFileUploadRsp, err error)
alipay.merchant.item.file.upload(商品文件上传接口)
文档地址:https://opendocs.alipay.com/apis/api_4/alipay.merchant.item.file.upload
func (*Client) OpenAppQrcodeCreate ¶ added in v1.5.45
func (a *Client) OpenAppQrcodeCreate(bm gopay.BodyMap) (aliRsp *OpenAppQrcodeCreateRsp, err error)
alipay.open.app.qrcode.create(小程序生成推广二维码接口)
文档地址:https://opendocs.alipay.com/apis/009zva
func (*Client) OpenAuthTokenApp ¶
func (a *Client) OpenAuthTokenApp(bm gopay.BodyMap) (aliRsp *OpenAuthTokenAppResponse, err error)
alipay.open.auth.token.app(换取应用授权令牌)
文档地址:https://opendocs.alipay.com/apis/api_9/alipay.open.auth.token.app
func (*Client) PostAliPayAPISelf ¶
Deprecated
推荐使用 PostAliPayAPISelfV2() 示例:请参考 client_test.go 的 TestClient_PostAliPayAPISelf() 方法
func (*Client) PostAliPayAPISelfV2 ¶
func (a *Client) PostAliPayAPISelfV2(bm gopay.BodyMap, method string, aliRsp interface{}) (err error)
PostAliPayAPISelfV2 支付宝接口自行实现方法
注意:biz_content 需要自行通过bm.SetBodyMap()设置,不设置则没有此参数 示例:请参考 client_test.go 的 TestClient_PostAliPayAPISelf() 方法
func (*Client) PublicCertDownload ¶ added in v1.5.45
func (a *Client) PublicCertDownload(bm gopay.BodyMap) (aliRsp *PublicCertDownloadRsp, err error)
alipay.open.app.alipaycert.download(应用支付宝公钥证书下载)
文档地址:https://opendocs.alipay.com/apis/api_9/alipay.open.app.alipaycert.download
func (*Client) RequestParam ¶ added in v1.5.45
RequestParam 获取支付宝完整请求参数包含签名
注意:biz_content 需要自行通过bm.SetBodyMap()设置,不设置则没有此参数
func (*Client) SetAliPayPublicCertSN ¶
设置 支付宝公钥证书SN
aliPayPublicCertSN:支付宝公钥证书SN,通过 alipay.GetCertSN() 获取
func (*Client) SetAliPayRootCertSN ¶
设置 支付宝CA根证书SN
aliPayRootCertSN:支付宝CA根证书SN,通过 alipay.GetRootCertSN() 获取
func (*Client) SetAppAuthToken ¶
设置应用授权
func (*Client) SetCertSnByContent ¶
func (a *Client) SetCertSnByContent(appCertContent, aliPayRootCertContent, aliPayPublicCertContent []byte) (err error)
通过应用公钥证书内容设置 app_cert_sn、alipay_root_cert_sn、alipay_cert_sn
appCertContent:应用公钥证书文件内容 aliPayRootCertContent:支付宝根证书文件内容 aliPayPublicCertContent:支付宝公钥证书文件内容
func (*Client) SetCertSnByPath ¶
func (a *Client) SetCertSnByPath(appCertPath, aliPayRootCertPath, aliPayPublicCertPath string) (err error)
通过应用公钥证书路径设置 app_cert_sn、alipay_root_cert_sn、alipay_cert_sn
appCertPath:应用公钥证书路径 aliPayRootCertPath:支付宝根证书文件路径 aliPayPublicCertPath:支付宝公钥证书文件路径
func (*Client) SetCharset ¶
设置编码格式,如utf-8,gbk,gb2312等,默认推荐使用 utf-8
func (*Client) SetLocation ¶
设置 时区,不设置或出错均为默认服务器时间
func (*Client) SetNotifyUrl ¶
设置支付宝服务器主动通知商户服务器里指定的页面http/https路径。
func (*Client) SetPrivateKeyType ¶
设置 支付宝 私钥类型,alipay.PKCS1 或 alipay.PKCS8,默认 PKCS1
func (*Client) SetReturnUrl ¶
设置支付后的ReturnUrl
func (*Client) SetSignType ¶
设置签名算法类型,目前支持RSA2和RSA,默认推荐使用 RSA2
func (*Client) SystemOauthToken ¶
func (a *Client) SystemOauthToken(bm gopay.BodyMap) (aliRsp *SystemOauthTokenResponse, err error)
alipay.system.oauth.token(换取授权访问令牌)
文档地址:https://opendocs.alipay.com/apis/api_9/alipay.system.oauth.token
func (*Client) TradeAdvanceConsult ¶ added in v1.5.45
func (a *Client) TradeAdvanceConsult(bm gopay.BodyMap) (aliRsp *TradeAdvanceConsultRsp, err error)
alipay.trade.advance.consult(订单咨询服务)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.advance.consult
func (*Client) TradeAppPay ¶
alipay.trade.app.pay(app支付接口2.0)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.app.pay
func (*Client) TradeCancel ¶
func (a *Client) TradeCancel(bm gopay.BodyMap) (aliRsp *TradeCancelResponse, err error)
alipay.trade.cancel(统一收单交易撤销接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.cancel
func (*Client) TradeClose ¶
func (a *Client) TradeClose(bm gopay.BodyMap) (aliRsp *TradeCloseResponse, err error)
alipay.trade.close(统一收单交易关闭接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.close
func (*Client) TradeCreate ¶
func (a *Client) TradeCreate(bm gopay.BodyMap) (aliRsp *TradeCreateResponse, err error)
alipay.trade.create(统一收单交易创建接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.create
func (*Client) TradeFastPayRefundQuery ¶
func (a *Client) TradeFastPayRefundQuery(bm gopay.BodyMap) (aliRsp *TradeFastpayRefundQueryResponse, err error)
alipay.trade.fastpay.refund.query(统一收单交易退款查询)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.fastpay.refund.query
func (*Client) TradeOrderInfoSync ¶ added in v1.5.45
func (a *Client) TradeOrderInfoSync(bm gopay.BodyMap) (aliRsp *TradeOrderInfoSyncRsp, err error)
alipay.trade.orderinfo.sync(支付宝订单信息同步接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.orderinfo.sync
func (*Client) TradeOrderSettle ¶
func (a *Client) TradeOrderSettle(bm gopay.BodyMap) (aliRsp *TradeOrderSettleResponse, err error)
alipay.trade.order.settle(统一收单交易结算接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.order.settle
func (*Client) TradePagePay ¶
alipay.trade.page.pay(统一收单下单并支付页面接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.page.pay
func (*Client) TradePageRefund ¶
func (a *Client) TradePageRefund(bm gopay.BodyMap) (aliRsp *TradePageRefundResponse, err error)
alipay.trade.page.refund(统一收单退款页面接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.page.refund
func (*Client) TradePay ¶
func (a *Client) TradePay(bm gopay.BodyMap) (aliRsp *TradePayResponse, err error)
alipay.trade.pay(统一收单交易支付接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.pay
func (*Client) TradePrecreate ¶
func (a *Client) TradePrecreate(bm gopay.BodyMap) (aliRsp *TradePrecreateResponse, err error)
alipay.trade.precreate(统一收单线下交易预创建)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.precreate
func (*Client) TradeQuery ¶
func (a *Client) TradeQuery(bm gopay.BodyMap) (aliRsp *TradeQueryResponse, err error)
alipay.trade.query(统一收单线下交易查询)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.query
func (*Client) TradeRefund ¶
func (a *Client) TradeRefund(bm gopay.BodyMap) (aliRsp *TradeRefundResponse, err error)
alipay.trade.refund(统一收单交易退款接口)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.refund
func (*Client) TradeWapPay ¶
alipay.trade.wap.pay(手机网站支付接口2.0)
文档地址:https://opendocs.alipay.com/apis/api_1/alipay.trade.wap.pay
func (*Client) UserAgreementPageSign ¶ added in v1.5.45
func (a *Client) UserAgreementPageSign(bm gopay.BodyMap) (aliRsp *UserAgreementPageSignRsp, err error)
alipay.user.agreement.page.sign(支付宝个人协议页面签约接口)
文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.agreement.page.sign
func (*Client) UserAgreementPageUnSign ¶ added in v1.5.45
func (a *Client) UserAgreementPageUnSign(bm gopay.BodyMap) (aliRsp *UserAgreementPageUnSignRsp, err error)
alipay.user.agreement.unsign(支付宝个人代扣协议解约接口)
文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.agreement.page.unsign
func (*Client) UserAgreementQuery ¶ added in v1.5.45
func (a *Client) UserAgreementQuery(bm gopay.BodyMap) (aliRsp *UserAgreementQueryRsp, err error)
alipay.user.agreement.query(支付宝个人代扣协议查询接口)
文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.agreement.query
func (*Client) UserCertifyOpenCertify ¶
alipay.user.certify.open.certify(身份认证开始认证)
API文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.certify.open.certify 产品文档地址:https://opendocs.alipay.com/open/20181012100420932508/quickstart
func (*Client) UserCertifyOpenInit ¶
func (a *Client) UserCertifyOpenInit(bm gopay.BodyMap) (aliRsp *UserCertifyOpenInitResponse, err error)
alipay.user.certify.open.initialize(身份认证初始化服务)
文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.certify.open.initialize
func (*Client) UserCertifyOpenQuery ¶
func (a *Client) UserCertifyOpenQuery(bm gopay.BodyMap) (aliRsp *UserCertifyOpenQueryResponse, err error)
alipay.user.certify.open.query(身份认证记录查询)
文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.certify.open.query
func (*Client) UserInfoAuth ¶
func (a *Client) UserInfoAuth(bm gopay.BodyMap) (aliRsp *UserInfoAuthResponse, err error)
alipay.user.info.auth(用户登陆授权)
文档地址:https://opendocs.alipay.com/apis/api_9/alipay.user.info.auth
func (*Client) UserInfoShare ¶
func (a *Client) UserInfoShare(authToken string) (aliRsp *UserInfoShareResponse, err error)
alipay.user.info.share(支付宝会员授权信息查询接口)
body:此接口无需body参数 文档地址:https://opendocs.alipay.com/apis/api_2/alipay.user.info.share
func (*Client) ZhimaCreditScoreGet ¶
func (a *Client) ZhimaCreditScoreGet(bm gopay.BodyMap) (aliRsp *ZhimaCreditScoreGetResponse, err error)
Deprecated zhima.credit.score.get(查询芝麻用户的芝麻分)
文档地址:https://opendocs.alipay.com/apis/api_8/zhima.credit.score.get
type DataBillBalanceQuery ¶ added in v1.5.45
type DataBillBalanceQuery struct { ErrorResponse TotalAmount string `json:"total_amount,omitempty"` AvailableAmount string `json:"available_amount,omitempty"` FreezeAmount string `json:"freeze_amount,omitempty"` }
type DataBillBalanceQueryResponse ¶
type DataBillBalanceQueryResponse struct { Response *DataBillBalanceQuery `json:"alipay_data_bill_balance_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type DataBillDownloadUrlQuery ¶ added in v1.5.45
type DataBillDownloadUrlQuery struct { ErrorResponse BillDownloadUrl string `json:"bill_download_url,omitempty"` }
type DataBillDownloadUrlQueryResponse ¶
type DataBillDownloadUrlQueryResponse struct { Response *DataBillDownloadUrlQuery `json:"alipay_data_dataservice_bill_downloadurl_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type ErrorResponse ¶
type ExtCardInfo ¶ added in v1.5.45
type ExtCardInfo struct { CardNo string `json:"card_no,omitempty"` BankAccName string `json:"bank_acc_name,omitempty"` CardBranch string `json:"card_branch,omitempty"` CardBank string `json:"card_bank,omitempty"` CardLocation string `json:"card_location,omitempty"` CardDeposit string `json:"card_deposit,omitempty"` Status string `json:"status,omitempty"` }
type FundAccountQuery ¶ added in v1.5.45
type FundAccountQuery struct { ErrorResponse AvailableAmount string `json:"available_amount,omitempty"` ExtCardInfo *ExtCardInfo `json:"ext_card_info,omitempty"` }
type FundAccountQueryResponse ¶
type FundAccountQueryResponse struct { Response *FundAccountQuery `json:"alipay_fund_account_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOperationCancel ¶ added in v1.5.45
type FundAuthOperationCancelResponse ¶
type FundAuthOperationCancelResponse struct { Response *FundAuthOperationCancel `json:"alipay_fund_auth_operation_cancel_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOperationDetailQuery ¶ added in v1.5.45
type FundAuthOperationDetailQuery struct { ErrorResponse AuthNo string `json:"auth_no,omitempty"` OutOrderNo string `json:"out_order_no,omitempty"` TotalFreezeAmount string `json:"total_freeze_amount,omitempty"` RestAmount string `json:"rest_amount,omitempty"` TotalPayAmount string `json:"total_pay_amount,omitempty"` OrderTitle string `json:"order_title,omitempty"` PayerLogonId string `json:"payer_logon_id,omitempty"` PayerUserId string `json:"payer_user_id,omitempty"` ExtraParam string `json:"extra_param,omitempty"` OperationId string `json:"operation_id,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` Amount string `json:"amount,omitempty"` OperationType string `json:"operation_type,omitempty"` Status string `json:"status,omitempty"` Remark string `json:"remark,omitempty"` GmtCreate string `json:"gmt_create,omitempty"` GmtTrans string `json:"gmt_trans,omitempty"` PreAuthType string `json:"pre_auth_type,omitempty"` TransCurrency string `json:"trans_currency,omitempty"` TotalFreezeCreditAmount string `json:"total_freeze_credit_amount,omitempty"` TotalFreezeFundAmount string `json:"total_freeze_fund_amount,omitempty"` TotalPayCreditAmount string `json:"total_pay_credit_amount,omitempty"` TotalPayFundAmount string `json:"total_pay_fund_amount,omitempty"` RestCreditAmount string `json:"rest_credit_amount,omitempty"` RestFundAmount string `json:"rest_fund_amount,omitempty"` CreditAmount string `json:"credit_amount,omitempty"` FundAmount string `json:"fund_amount,omitempty"` }
type FundAuthOperationDetailQueryResponse ¶
type FundAuthOperationDetailQueryResponse struct { Response *FundAuthOperationDetailQuery `json:"alipay_fund_auth_operation_detail_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOrderAppFreeze ¶ added in v1.5.45
type FundAuthOrderAppFreeze struct { ErrorResponse AuthNo string `json:"auth_no,omitempty"` OutOrderNo string `json:"out_order_no,omitempty"` OperationId string `json:"operation_id,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` Amount string `json:"amount,omitempty"` Status string `json:"status,omitempty"` PayerUserId string `json:"payer_user_id,omitempty"` GmtTrans string `json:"gmt_trans,omitempty"` PreAuthType string `json:"pre_auth_type,omitempty"` CreditAmount string `json:"credit_amount,omitempty"` FundAmount string `json:"fund_amount,omitempty"` TransCurrency string `json:"trans_currency,omitempty"` }
type FundAuthOrderAppFreezeResponse ¶
type FundAuthOrderAppFreezeResponse struct { Response *FundAuthOrderAppFreeze `json:"alipay_fund_auth_order_app_freeze_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOrderFreeze ¶ added in v1.5.45
type FundAuthOrderFreeze struct { ErrorResponse AuthNo string `json:"auth_no,omitempty"` OutOrderNo string `json:"out_order_no,omitempty"` OperationId string `json:"operation_id,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` Amount string `json:"amount,omitempty"` Status string `json:"status,omitempty"` PayerUserId string `json:"payer_user_id,omitempty"` PayerLogonId string `json:"payer_logon_id,omitempty"` GmtTrans string `json:"gmt_trans,omitempty"` }
type FundAuthOrderFreezeResponse ¶
type FundAuthOrderFreezeResponse struct { Response *FundAuthOrderFreeze `json:"alipay_fund_auth_order_freeze_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOrderUnfreeze ¶ added in v1.5.45
type FundAuthOrderUnfreeze struct { ErrorResponse AuthNo string `json:"auth_no,omitempty"` OutOrderNo string `json:"out_order_no,omitempty"` OperationId string `json:"operation_id,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` Amount string `json:"amount,omitempty"` Status string `json:"status,omitempty"` GmtTrans string `json:"gmt_trans,omitempty"` CreditAmount string `json:"credit_amount,omitempty"` FundAmount string `json:"fund_amount,omitempty"` }
type FundAuthOrderUnfreezeResponse ¶
type FundAuthOrderUnfreezeResponse struct { Response *FundAuthOrderUnfreeze `json:"alipay_fund_auth_order_unfreeze_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundAuthOrderVoucherCreate ¶ added in v1.5.45
type FundAuthOrderVoucherCreateResponse ¶
type FundAuthOrderVoucherCreateResponse struct { Response *FundAuthOrderVoucherCreate `json:"alipay_fund_auth_order_voucher_create_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundBatchClose ¶ added in v1.5.45
type FundBatchClose struct { ErrorResponse BatchTransId string `json:"batch_trans_id,omitempty"` Status string `json:"status,omitempty"` }
type FundBatchCloseResponse ¶
type FundBatchCloseResponse struct { Response *FundBatchClose `json:"alipay_fund_batch_close_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundBatchCreate ¶ added in v1.5.45
type FundBatchCreate struct { ErrorResponse OutBatchNo string `json:"out_batch_no,omitempty"` BatchTransId string `json:"batch_trans_id,omitempty"` Status string `json:"status,omitempty"` }
type FundBatchCreateResponse ¶
type FundBatchCreateResponse struct { Response *FundBatchCreate `json:"alipay_fund_batch_create_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundBatchDetailQuery ¶ added in v1.5.45
type FundBatchDetailQuery struct { ErrorResponse BatchTransId string `json:"batch_trans_id,omitempty"` BatchNo string `json:"batch_no,omitempty"` BizCode string `json:"biz_code,omitempty"` BizScene string `json:"biz_scene,omitempty"` BatchStatus string `json:"batch_status,omitempty"` ApprovalStatus string `json:"approval_status,omitempty"` ErrorCode string `json:"error_code,omitempty"` FailReason string `json:"fail_reason,omitempty"` SignPrincipal string `json:"sign_principal,omitempty"` PaymentAmount string `json:"payment_amount,omitempty"` PaymentCurrency string `json:"payment_currency,omitempty"` PageSize string `json:"page_size,omitempty"` PageNum string `json:"page_num,omitempty"` ProductCode string `json:"product_code,omitempty"` TotalPageCount string `json:"total_page_count,omitempty"` OutBatchNo string `json:"out_batch_no,omitempty"` GmtFinish string `json:"gmt_finish,omitempty"` TotalAmount string `json:"total_amount,omitempty"` GmtPayFinish string `json:"gmt_pay_finish,omitempty"` PayerId string `json:"payer_id,omitempty"` SuccessAmount string `json:"success_amount,omitempty"` FailAmount string `json:"fail_amount,omitempty"` FailCount string `json:"fail_count,omitempty"` SuccessCount string `json:"success_count,omitempty"` TotalItemCount string `json:"total_item_count,omitempty"` AccDetailList []*struct { DetailNo string `json:"detail_no,omitempty"` PaymentAmount string `json:"payment_amount,omitempty"` PaymentCurrency string `json:"payment_currency,omitempty"` TransAmount string `json:"trans_amount,omitempty"` TransCurrency string `json:"trans_currency,omitempty"` SettlementAmount string `json:"settlement_amount,omitempty"` SettlementCurrency string `json:"settlement_currency,omitempty"` PayeeInfo *struct { PayeeAccount string `json:"payee_account,omitempty"` PayeeType string `json:"payee_type,omitempty"` PayeeName string `json:"payee_name,omitempty"` } `json:"payee_info,omitempty"` CertInfo *struct { CertNo string `json:"cert_no,omitempty"` CertType string `json:"cert_type,omitempty"` } `json:"cert_info,omitempty"` Remark string `json:"remark,omitempty"` Status string `json:"status,omitempty"` ExchangeRate *struct { Rate string `json:"rate,omitempty"` BaseCurrency string `json:"base_currency,omitempty"` ExchangeCurrency string `json:"exchange_currency,omitempty"` } `json:"exchange_rate,omitempty"` NeedRetry string `json:"need_retry,omitempty"` AlipayOrderNo string `json:"alipay_order_no,omitempty"` OutBizNo string `json:"out_biz_no,omitempty"` DetailId string `json:"detail_id,omitempty"` ErrorCode string `json:"error_code,omitempty"` ErrorMsg string `json:"error_msg,omitempty"` GmtCreate string `json:"gmt_create,omitempty"` GmtFinish string `json:"gmt_finish,omitempty"` SubStatus string `json:"sub_status,omitempty"` } `json:"acc_detail_list,omitempty"` }
type FundBatchDetailQueryResponse ¶
type FundBatchDetailQueryResponse struct { Response *FundBatchDetailQuery `json:"alipay_fund_batch_detail_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundBillListInfo ¶
type FundBillListInfo struct { Amount string `json:"amount,omitempty"` FundChannel string `json:"fundChannel,omitempty"` // 异步通知里是 fundChannel }
Deprecated
type FundTransAppPay ¶ added in v1.5.45
type FundTransAppPay struct { ErrorResponse OutBizNo string `json:"out_biz_no,omitempty"` OrderId string `json:"order_id,omitempty"` Status string `json:"status,omitempty"` }
type FundTransAppPayResponse ¶
type FundTransAppPayResponse struct { Response *FundTransAppPay `json:"alipay_fund_trans_app_pay_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundTransCommonQuery ¶ added in v1.5.45
type FundTransCommonQuery struct { ErrorResponse OrderId string `json:"order_id,omitempty"` PayFundOrderId string `json:"pay_fund_order_id,omitempty"` OutBizNo string `json:"out_biz_no,omitempty"` TransAmount string `json:"trans_amount,omitempty"` Status string `json:"status,omitempty"` PayDate string `json:"pay_date,omitempty"` ArrivalTimeEnd string `json:"arrival_time_end,omitempty"` OrderFee string `json:"order_fee,omitempty"` ErrorCode string `json:"error_code,omitempty"` FailReason string `json:"fail_reason,omitempty"` }
type FundTransCommonQueryResponse ¶
type FundTransCommonQueryResponse struct { Response *FundTransCommonQuery `json:"alipay_fund_trans_common_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundTransOrderQuery ¶ added in v1.5.45
type FundTransOrderQuery struct { ErrorResponse OrderId string `json:"order_id,omitempty"` Status string `json:"status,omitempty"` PayDate string `json:"pay_date,omitempty"` ArrivalTimeEnd string `json:"arrival_time_end,omitempty"` OrderFee string `json:"order_fee,omitempty"` FailReason string `json:"fail_reason,omitempty"` OutBizNo string `json:"out_biz_no,omitempty"` ErrorCode string `json:"error_code,omitempty"` }
type FundTransOrderQueryResponse ¶
type FundTransOrderQueryResponse struct { Response *FundTransOrderQuery `json:"alipay_fund_trans_order_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
type FundTransPayeeBindQuery ¶ added in v1.5.45
type FundTransPayeeBindQuery struct { ErrorResponse Bind string `json:"bind"` // 是否绑定收款账号。true:已绑定;false:未绑定 }
type FundTransPayeeBindQueryRsp ¶ added in v1.5.45
type FundTransPayeeBindQueryRsp struct { Response *FundTransPayeeBindQuery `json:"alipay_fund_trans_payee_bind_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundTransRefund ¶ added in v1.5.45
type FundTransRefundResponse ¶
type FundTransRefundResponse struct { Response *FundTransRefund `json:"alipay_fund_trans_refund_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundTransToaccountTransferResponse ¶
type FundTransToaccountTransferResponse struct { Response *TransToaccountTransfer `json:"alipay_fund_trans_toaccount_transfer_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type FundTransUniTransferResponse ¶
type FundTransUniTransferResponse struct { Response *TransUniTransfer `json:"alipay_fund_trans_uni_transfer_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
type MerchantItemFileUpload ¶ added in v1.5.45
type MerchantItemFileUpload struct { ErrorResponse MaterialId string `json:"material_id"` // 文件在商品中心的素材标识(素材ID长期有效) MaterialKey string `json:"material_key"` // 文件在商品中心的素材标示,创建/更新商品时使用 }
type MerchantItemFileUploadRsp ¶ added in v1.5.45
type MerchantItemFileUploadRsp struct { Response *MerchantItemFileUpload `json:"alipay_merchant_item_file_upload_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type MonitorHeartbeatSynRes ¶ added in v1.5.45
type MonitorHeartbeatSynRes struct { ErrorResponse Pid string `json:"pid,omitempty"` }
type MonitorHeartbeatSynResponse ¶
type MonitorHeartbeatSynResponse struct { Response *MonitorHeartbeatSynRes `json:"monitor_heartbeat_syn_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
func MonitorHeartbeatSyn ¶
func MonitorHeartbeatSyn(appId string, t PKCSType, privateKey, signType, bizContent string) (rsp *MonitorHeartbeatSynResponse, err error)
monitor.heartbeat.syn(验签接口)
appId:应用ID privateKey:应用私钥,支持PKCS1和PKCS8 signType:签名方式 alipay.RSA 或 alipay.RSA2,默认 RSA2 bizContent:验签时该参数不做任何处理,{任意值},此参数具体看文档 文档:https://opendocs.alipay.com/apis/api_9/monitor.heartbeat.syn
type NotifyRequest ¶
type NotifyRequest struct { NotifyTime string `json:"notify_time,omitempty"` NotifyType string `json:"notify_type,omitempty"` NotifyId string `json:"notify_id,omitempty"` AppId string `json:"app_id,omitempty"` Charset string `json:"charset,omitempty"` Version string `json:"version,omitempty"` SignType string `json:"sign_type,omitempty"` Sign string `json:"sign,omitempty"` AuthAppId string `json:"auth_app_id,omitempty"` TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` OutBizNo string `json:"out_biz_no,omitempty"` BuyerId string `json:"buyer_id,omitempty"` BuyerLogonId string `json:"buyer_logon_id,omitempty"` SellerId string `json:"seller_id,omitempty"` SellerEmail string `json:"seller_email,omitempty"` TradeStatus string `json:"trade_status,omitempty"` TotalAmount string `json:"total_amount,omitempty"` ReceiptAmount string `json:"receipt_amount,omitempty"` InvoiceAmount string `json:"invoice_amount,omitempty"` BuyerPayAmount string `json:"buyer_pay_amount,omitempty"` PointAmount string `json:"point_amount,omitempty"` RefundFee string `json:"refund_fee,omitempty"` Subject string `json:"subject,omitempty"` Body string `json:"body,omitempty"` GmtCreate string `json:"gmt_create,omitempty"` GmtPayment string `json:"gmt_payment,omitempty"` GmtRefund string `json:"gmt_refund,omitempty"` GmtClose string `json:"gmt_close,omitempty"` FundBillList []*FundBillListInfo `json:"fund_bill_list,omitempty"` PassbackParams string `json:"passback_params,omitempty"` VoucherDetailList []*VoucherDetail `json:"voucher_detail_list,omitempty"` Method string `json:"method,omitempty"` // 电脑网站支付 支付宝请求 return_url 同步返回参数 Timestamp string `json:"timestamp,omitempty"` // 电脑网站支付 支付宝请求 return_url 同步返回参数 }
Deprecated
func ParseNotifyResult ¶
func ParseNotifyResult(req *http.Request) (notifyReq *NotifyRequest, err error)
Deprecated 解析支付宝支付异步通知的参数到Struct
req:*http.Request 返回参数notifyReq:Notify请求的参数 返回参数err:错误信息 文档:https://opendocs.alipay.com/open/203/105286
type OauthTokenInfo ¶ added in v1.5.45
type OauthTokenInfo struct { AccessToken string `json:"access_token,omitempty"` AlipayUserId string `json:"alipay_user_id,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` ReExpiresIn int64 `json:"re_expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` UserId string `json:"user_id,omitempty"` }
type OpenApiRoyaltyDetailInfoPojo ¶
type OpenApiRoyaltyDetailInfoPojo struct { RoyaltyType string `json:"royalty_type,omitempty"` TransOut string `json:"trans_out,omitempty"` TransOutType string `json:"trans_out_type,omitempty"` TransInType string `json:"trans_in_type,omitempty"` TransIn string `json:"trans_in"` Amount string `json:"amount,omitempty"` Desc string `json:"desc,omitempty"` }
type OpenAppQrcodeCreate ¶ added in v1.5.45
type OpenAppQrcodeCreate struct { ErrorResponse QrCodeUrl string `json:"qr_code_url"` }
type OpenAppQrcodeCreateRsp ¶ added in v1.5.45
type OpenAppQrcodeCreateRsp struct { Response *OpenAppQrcodeCreate `json:"alipay_open_app_qrcode_create_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type OpenAuthTokenAppResponse ¶
type OpenAuthTokenAppResponse struct { Response *AuthTokenApp `json:"alipay_open_auth_token_app_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type PublicCertDownload ¶ added in v1.5.45
type PublicCertDownload struct { ErrorResponse AlipayCertContent string `json:"alipay_cert_content"` }
type PublicCertDownloadRsp ¶ added in v1.5.45
type PublicCertDownloadRsp struct {
Response *PublicCertDownload `json:"alipay_open_app_alipaycert_download_response"`
}
===================================================
type RefundPresetPaytool ¶ added in v1.5.45
type RefundRoyalty ¶ added in v1.5.45
type RefundRoyalty struct { RefundAmount string `json:"refund_amount,omitempty"` RoyaltyType string `json:"royalty_type,omitempty"` ResultCode string `json:"result_code,omitempty"` TransOut string `json:"trans_out,omitempty"` TransOutEmail string `json:"trans_out_email,omitempty"` TransIn string `json:"trans_in,omitempty"` TransInEmail string `json:"trans_in_email,omitempty"` }
type ScoreGet ¶ added in v1.5.45
type ScoreGet struct { ErrorResponse BizNo string `json:"biz_no,omitempty"` ZmScore string `json:"zm_score,omitempty"` }
type SystemOauthTokenResponse ¶
type SystemOauthTokenResponse struct { Response *OauthTokenInfo `json:"alipay_system_oauth_token_response"` ErrorResponse *ErrorResponse `json:"error_response,omitempty"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
func SystemOauthToken ¶
func SystemOauthToken(appId string, t PKCSType, privateKey, grantType, codeOrToken, signType string) (rsp *SystemOauthTokenResponse, err error)
SystemOauthToken 换取授权访问令牌(默认使用utf-8,RSA2)
appId:应用ID t:支付宝私钥类型,alipay.PKCS1 或 alipay.PKCS8,默认 PKCS1 privateKey:应用私钥 grantType:值为 authorization_code 时,代表用code换取;值为 refresh_token 时,代表用refresh_token换取,传空默认code换取 codeOrToken:支付宝授权码或refresh_token signType:签名方式 RSA 或 RSA2,默认 RSA2 文档:https://opendocs.alipay.com/apis/api_9/alipay.system.oauth.token
type Token ¶ added in v1.5.45
type Token struct { AppAuthToken string `json:"app_auth_token,omitempty"` AppRefreshToken string `json:"app_refresh_token,omitempty"` AuthAppId string `json:"auth_app_id,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` ReExpiresIn int64 `json:"re_expires_in,omitempty"` UserId string `json:"user_id,omitempty"` }
type TradeAdvanceConsult ¶ added in v1.5.45
type TradeAdvanceConsult struct { ErrorResponse ReferResult bool `json:"refer_result"` WaitRepaymentOrderInfos []*WaitRepaymentOrderInfo `json:"wait_repayment_order_infos,omitempty"` WaitRepaymentAmount string `json:"wait_repayment_amount,omitempty"` WaitRepaymentOrderCount string `json:"wait_repayment_order_count,omitempty"` RiskLevel string `json:"risk_level,omitempty"` ResultMessage string `json:"result_message"` ResultCode string `json:"result_code"` }
type TradeAdvanceConsultRsp ¶ added in v1.5.45
type TradeAdvanceConsultRsp struct { Response *TradeAdvanceConsult `json:"alipay_trade_advance_consult_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeCancel ¶ added in v1.5.45
type TradeCancel struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` RetryFlag string `json:"retry_flag,omitempty"` Action string `json:"action,omitempty"` GmtRefundPay string `json:"gmt_refund_pay,omitempty"` RefundSettlementId string `json:"refund_settlement_id,omitempty"` }
type TradeCancelResponse ¶
type TradeCancelResponse struct { Response *TradeCancel `json:"alipay_trade_cancel_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeClose ¶ added in v1.5.45
type TradeClose struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` }
type TradeCloseResponse ¶
type TradeCloseResponse struct { Response *TradeClose `json:"alipay_trade_close_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeCreate ¶ added in v1.5.45
type TradeCreate struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` }
type TradeCreateResponse ¶
type TradeCreateResponse struct { Response *TradeCreate `json:"alipay_trade_create_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeFastpayRefundQueryResponse ¶
type TradeFastpayRefundQueryResponse struct { Response *TradeRefundQuery `json:"alipay_trade_fastpay_refund_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeFundBill ¶
type TradeOrderInfoSync ¶ added in v1.5.45
type TradeOrderInfoSync struct { ErrorResponse TradeNo string `json:"trade_no"` OutTradeNo string `json:"out_trade_no"` BuyerUserId string `json:"buyer_user_id"` }
type TradeOrderInfoSyncRsp ¶ added in v1.5.45
type TradeOrderInfoSyncRsp struct { Response *TradeOrderInfoSync `json:"alipay_trade_orderinfo_sync_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeOrderSettle ¶ added in v1.5.45
type TradeOrderSettle struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` }
type TradeOrderSettleResponse ¶
type TradeOrderSettleResponse struct { Response *TradeOrderSettle `json:"alipay_trade_order_settle_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradePageRefund ¶ added in v1.5.45
type TradePageRefund struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` RefundAmount string `json:"refund_amount,omitempty"` }
type TradePageRefundResponse ¶
type TradePageRefundResponse struct { Response *TradePageRefund `json:"alipay_trade_page_refund_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradePay ¶ added in v1.5.45
type TradePay struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` BuyerLogonId string `json:"buyer_logon_id,omitempty"` SettleAmount string `json:"settle_amount,omitempty"` PayCurrency string `json:"pay_currency,omitempty"` PayAmount string `json:"pay_amount,omitempty"` SettleTransRate string `json:"settle_trans_rate,omitempty"` TransPayRate string `json:"trans_pay_rate,omitempty"` TotalAmount string `json:"total_amount,omitempty"` TransCurrency string `json:"trans_currency,omitempty"` SettleCurrency string `json:"settle_currency,omitempty"` ReceiptAmount string `json:"receipt_amount,omitempty"` BuyerPayAmount string `json:"buyer_pay_amount,omitempty"` PointAmount string `json:"point_amount,omitempty"` InvoiceAmount string `json:"invoice_amount,omitempty"` GmtPayment string `json:"gmt_payment,omitempty"` FundBillList []*FundBill `json:"fund_bill_list"` CardBalance string `json:"card_balance,omitempty"` StoreName string `json:"store_name,omitempty"` BuyerUserId string `json:"buyer_user_id,omitempty"` DiscountGoodsDetail string `json:"discount_goods_detail,omitempty"` VoucherDetailList []*VoucherDetail `json:"voucher_detail_list"` AdvanceAmount string `json:"advance_amount,omitempty"` AuthTradePayMode string `json:"auth_trade_pay_mode,omitempty"` ChargeAmount string `json:"charge_amount,omitempty"` ChargeFlags string `json:"charge_flags,omitempty"` SettlementId string `json:"settlement_id,omitempty"` BusinessParams string `json:"business_params,omitempty"` BuyerUserType string `json:"buyer_user_type,omitempty"` MdiscountAmount string `json:"mdiscount_amount,omitempty"` DiscountAmount string `json:"discount_amount,omitempty"` BuyerUserName string `json:"buyer_user_name,omitempty"` }
type TradePayResponse ¶
type TradePayResponse struct { Response *TradePay `json:"alipay_trade_pay_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradePrecreate ¶ added in v1.5.45
type TradePrecreate struct { ErrorResponse OutTradeNo string `json:"out_trade_no,omitempty"` QrCode string `json:"qr_code,omitempty"` }
type TradePrecreateResponse ¶
type TradePrecreateResponse struct { Response *TradePrecreate `json:"alipay_trade_precreate_response"` NullResponse *ErrorResponse `json:"null_response,omitempty"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeQuery ¶ added in v1.5.45
type TradeQuery struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` BuyerLogonId string `json:"buyer_logon_id,omitempty"` TradeStatus string `json:"trade_status,omitempty"` TotalAmount string `json:"total_amount,omitempty"` TransCurrency string `json:"trans_currency,omitempty"` SettleCurrency string `json:"settle_currency,omitempty"` SettleAmount string `json:"settle_amount,omitempty"` PayCurrency string `json:"pay_currency,omitempty"` PayAmount string `json:"pay_amount,omitempty"` SettleTransRate string `json:"settle_trans_rate,omitempty"` TransPayRate string `json:"trans_pay_rate,omitempty"` BuyerPayAmount string `json:"buyer_pay_amount,omitempty"` PointAmount string `json:"point_amount,omitempty"` InvoiceAmount string `json:"invoice_amount,omitempty"` SendPayDate string `json:"send_pay_date,omitempty"` ReceiptAmount string `json:"receipt_amount,omitempty"` StoreId string `json:"store_id,omitempty"` TerminalId string `json:"terminal_id,omitempty"` FundBillList []*FundBill `json:"fund_bill_list"` StoreName string `json:"store_name,omitempty"` BuyerUserId string `json:"buyer_user_id,omitempty"` ChargeAmount string `json:"charge_amount,omitempty"` ChargeFlags string `json:"charge_flags,omitempty"` SettlementId string `json:"settlement_id,omitempty"` TradeSettleInfo *struct { TradeSettleDetailList []*struct { OperationType string `json:"operation_type,omitempty"` OperationSerialNo string `json:"operation_serial_no,omitempty"` OperationDt string `json:"operation_dt,omitempty"` TransOut string `json:"trans_out,omitempty"` TransIn string `json:"trans_in,omitempty"` Amount string `json:"amount,omitempty"` } `json:"trade_settle_detail_list,omitempty"` } `json:"trade_settle_info,omitempty"` AuthTradePayMode string `json:"auth_trade_pay_mode,omitempty"` BuyerUserType string `json:"buyer_user_type,omitempty"` MdiscountAmount string `json:"mdiscount_amount,omitempty"` DiscountAmount string `json:"discount_amount,omitempty"` BuyerUserName string `json:"buyer_user_name,omitempty"` Subject string `json:"subject,omitempty"` Body string `json:"body,omitempty"` AlipaySubMerchantId string `json:"alipay_sub_merchant_id,omitempty"` ExtInfos string `json:"ext_infos,omitempty"` }
type TradeQueryResponse ¶
type TradeQueryResponse struct { Response *TradeQuery `json:"alipay_trade_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TradeRefund ¶ added in v1.5.45
type TradeRefund struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` BuyerLogonId string `json:"buyer_logon_id,omitempty"` FundChange string `json:"fund_change,omitempty"` RefundFee string `json:"refund_fee,omitempty"` RefundCurrency string `json:"refund_currency,omitempty"` GmtRefundPay string `json:"gmt_refund_pay,omitempty"` RefundDetailItemList []*TradeFundBill `json:"refund_detail_item_list,omitempty"` StoreName string `json:"store_name,omitempty"` BuyerUserId string `json:"buyer_user_id,omitempty"` RefundPresetPaytoolList []*RefundPresetPaytool `json:"refund_preset_paytool_list,omitempty"` RefundSettlementId string `json:"refund_settlement_id,omitempty"` PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"` PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"` PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"` }
type TradeRefundQuery ¶ added in v1.5.45
type TradeRefundQuery struct { ErrorResponse TradeNo string `json:"trade_no,omitempty"` OutTradeNo string `json:"out_trade_no,omitempty"` OutRequestNo string `json:"out_request_no,omitempty"` RefundReason string `json:"refund_reason,omitempty"` TotalAmount string `json:"total_amount,omitempty"` RefundAmount string `json:"refund_amount,omitempty"` RefundRoyaltys []*RefundRoyalty `json:"refund_royaltys,omitempty"` GmtRefundPay string `json:"gmt_refund_pay,omitempty"` RefundDetailItemList []*TradeFundBill `json:"refund_detail_item_list,omitempty"` SendBackFee string `json:"send_back_fee,omitempty"` RefundSettlementId string `json:"refund_settlement_id,omitempty"` PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"` PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"` PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"` }
type TradeRefundResponse ¶
type TradeRefundResponse struct { Response *TradeRefund `json:"alipay_trade_refund_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type TransToaccountTransfer ¶ added in v1.5.45
type TransToaccountTransfer struct { ErrorResponse OutBizNo string `json:"out_biz_no,omitempty"` OrderId string `json:"order_id,omitempty"` PayDate string `json:"pay_date,omitempty"` }
type TransUniTransfer ¶ added in v1.5.45
type UserAgreementPageSign ¶ added in v1.5.45
type UserAgreementPageSign struct { ErrorResponse ExternalAgreementNo string `json:"external_agreement_no,omitempty"` PersonalProductCode string `json:"personal_product_code"` ValidTime string `json:"valid_time"` SignScene string `json:"sign_scene"` AgreementNo string `json:"agreement_no"` ZmOpenId string `json:"zm_open_id,omitempty"` InvalidTime string `json:"invalid_time"` SignTime string `json:"sign_time"` AlipayUserId string `json:"alipay_user_id"` Status string `json:"status"` ForexEligible string `json:"forex_eligible,omitempty"` ExternalLogonId string `json:"external_logon_id,omitempty"` AlipayLogonId string `json:"alipay_logon_id"` CreditAuthMode string `json:"credit_auth_mode,omitempty"` }
type UserAgreementPageSignRsp ¶ added in v1.5.45
type UserAgreementPageSignRsp struct { Response *UserAgreementPageSign `json:"alipay_user_agreement_page_sign_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserAgreementPageUnSignRsp ¶ added in v1.5.45
type UserAgreementPageUnSignRsp struct { Response *ErrorResponse `json:"alipay_user_agreement_unsign_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserAgreementQuery ¶ added in v1.5.45
type UserAgreementQuery struct { ErrorResponse ValidTime string `json:"valid_time"` AlipayLogonId string `json:"alipay_logon_id"` InvalidTime string `json:"invalid_time"` PricipalType string `json:"pricipal_type"` DeviceId string `json:"device_id,omitempty"` PrincipalId string `json:"principal_id"` SignScene string `json:"sign_scene"` AgreementNo string `json:"agreement_no"` ThirdPartyType string `json:"third_party_type"` Status string `json:"status"` SignTime string `json:"sign_time"` PersonalProductCode string `json:"personal_product_code"` ExternalAgreementNo string `json:"external_agreement_no,omitempty"` ZmOpenId string `json:"zm_open_id,omitempty"` ExternalLogonId string `json:"external_logon_id,omitempty"` CreditAuthMode string `json:"credit_auth_mode,omitempty"` }
type UserAgreementQueryRsp ¶ added in v1.5.45
type UserAgreementQueryRsp struct { Response *UserAgreementQuery `json:"alipay_user_agreement_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserCertifyOpenInit ¶ added in v1.5.45
type UserCertifyOpenInit struct { ErrorResponse CertifyId string `json:"certify_id,omitempty"` }
type UserCertifyOpenInitResponse ¶
type UserCertifyOpenInitResponse struct { Response *UserCertifyOpenInit `json:"alipay_user_certify_open_initialize_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserCertifyOpenQuery ¶ added in v1.5.45
type UserCertifyOpenQuery struct { ErrorResponse Passed string `json:"passed,omitempty"` IdentityInfo string `json:"identity_info,omitempty"` MaterialInfo string `json:"material_info,omitempty"` }
type UserCertifyOpenQueryResponse ¶
type UserCertifyOpenQueryResponse struct { Response *UserCertifyOpenQuery `json:"alipay_user_certify_open_query_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserInfoAuthResponse ¶
type UserInfoAuthResponse struct { Response *ErrorResponse `json:"alipay_user_info_auth_response"` AlipayCertSn string `json:"alipay_cert_sn,omitempty"` SignData string `json:"-"` Sign string `json:"sign"` }
===================================================
type UserInfoShare ¶ added in v1.5.45
type UserInfoShare struct {}
type UserInfoShareResponse ¶
type UserInfoShareResponse struct {}
===================================================
type UserPhone ¶
type UserPhone struct { ErrorResponse Mobile string `json:"mobile,omitempty"` }
type VoucherDetail ¶ added in v1.5.45
type VoucherDetail struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Amount string `json:"amount,omitempty"` MerchantContribute string `json:"merchant_contribute,omitempty"` OtherContribute string `json:"other_contribute,omitempty"` Memo string `json:"memo,omitempty"` TemplateId string `json:"template_id,omitempty"` PurchaseBuyerContribute string `json:"purchase_buyer_contribute,omitempty"` PurchaseMerchantContribute string `json:"purchase_merchant_contribute,omitempty"` PurchaseAntContribute string `json:"purchase_ant_contribute,omitempty"` }