moneyconnect

package
v0.0.0-...-f295727 Latest Latest
Warning

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

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

README

拉卡拉钱账通

证书编码转换后,解析失败问题

openssl x509 -inform der -in certificate.cer -out certificate.pem

当使用以上命令将的der编码公钥证书转换成pem编码公钥证书后,Go可能会解析失败

可以使用java语言脚本获取证书 base64,然后替换certificate.pem 的 base64 部分

package com.lakala.moneyconnect;

import java.util.Base64;
import java.io.File;
import java.io.InputStream;
import java.io.FileInputStream;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.PublicKey;

public class PublicKeyDer2PemConvert {
    public static void main(String[] args) throws Exception {
        File file = new File("Der编码公钥证书路径");
        InputStream inputStream = new FileInputStream(file);
        CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509");
        X509Certificate cert = (X509Certificate) certificateFactory.generateCertificate(inputStream);
        PublicKey publicKey = cert.getPublicKey();
        Base64.Encoder encoder = Base64.getEncoder();
        System.out.println("public_base64:" + encoder.encodeToString(publicKey.getEncoded()));
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(appid string, merchantSignPrivateKey, merchantEncryptPrivateKey *rsa.PrivateKey,
	cloudSignPublicKey, cloudEncryptPublicKey *rsa.PublicKey, isProd bool) (client *Client)

func (*Client) ApplyMemberMobileModify

ApplyMemberMobileModify 申请会员手机修改

func (*Client) ApplyMemberSplitScale

ApplyMemberSplitScale 申请修改分账比例

func (*Client) BindMemberMerchant

func (t *Client) BindMemberMerchant(params models.BindMemberMerchantParams) (body *models.BaseResponse[models.BindMemberMerchantResult], err error)

BindMemberMerchant 商户绑定

func (*Client) ChangeMemberInfo

func (t *Client) ChangeMemberInfo(params models.ChangeMemberInfoParams) (body *models.BaseResponse[models.ChangeMemberInfoResult], err error)

ChangeMemberInfo 变更会员信息

func (*Client) CloudRsaEncrypt

func (t *Client) CloudRsaEncrypt(body []byte) (encryptRes []byte, err error)

CloudRsaEncrypt 钱账通Rsa公钥加密

func (*Client) ConfirmMemberMobileModify

ConfirmMemberMobileModify 确认会员手机修改

func (*Client) ConfirmMemberSplitScale

ConfirmMemberSplitScale 确认修改分账比例

func (*Client) CreateMemberEsign

func (t *Client) CreateMemberEsign(params models.CreateMemberEsignParams) (body *models.BaseResponse[models.CreateMemberEsignResult], err error)

CreateMemberEsign 创建电子签约

func (*Client) CreateSplitRule

func (t *Client) CreateSplitRule(params models.CreateSplitRuleParams) (body *models.BaseResponse[models.CreateSplitRuleResult], err error)

CreateSplitRule 新建分账规则

func (*Client) Deposit

func (t *Client) Deposit(params models.DepositParams) (body *models.BaseResponse[models.DepositResult], err error)

Deposit 充值(仅用于平台营销专用账户及商户退货专用账户充值)

func (*Client) DownloadFile

func (t *Client) DownloadFile(fileNo string, outputFilePath string) (err error)

DownloadFile [fileNo]文件编号

func (*Client) DownloadFileBytes

func (t *Client) DownloadFileBytes(fileNo string) (bytes []byte, err error)

DownloadFileBytes [fileNo]文件编号

func (*Client) DownloadOrderCheckFile

func (t *Client) DownloadOrderCheckFile(params models.DownloadOrderCheckFileParams, outputFilePath string) (err error)

DownloadOrderCheckFile 商户对账文件

func (*Client) EvaluateSplitRule

func (t *Client) EvaluateSplitRule(params models.EvaluateSplitRuleParams) (body *models.BaseResponse[models.EvaluateSplitRuleResult], err error)

EvaluateSplitRule 获取分账规则

func (*Client) FileUpload

func (t *Client) FileUpload(fileType, fileName string, imageFile *os.File) (body *models.BaseResponse[models.FileUploadResult], err error)

FileUpload [imageType]可选值pdf、doc、docx、zip

func (*Client) FileUploadFromBytes

func (t *Client) FileUploadFromBytes(fileType, fileName string, fileBytes []byte) (body *models.BaseResponse[models.FileUploadResult], err error)

FileUploadFromBytes [imageType]可选值pdf、doc、docx、zip

func (*Client) FreezeAccountBalance

func (t *Client) FreezeAccountBalance(params models.FreezeAccountBalanceParams) (body *models.BaseResponse[models.FreezeAccountBalanceResult], err error)

FreezeAccountBalance 冻结账户余额

func (*Client) GetAccountBalance

func (t *Client) GetAccountBalance(params models.GetAccountBalanceParams) (body *models.BaseResponse[models.GetAccountBalanceResult], err error)

GetAccountBalance 查询账户余额

func (*Client) GetAccountHistoryList

GetAccountHistoryList 查询账户变更明细

func (*Client) GetAccountIncomeCost

func (t *Client) GetAccountIncomeCost(params models.GetAccountIncomeCostParams) (body *models.BaseResponse[models.GetAccountIncomeCostResult], err error)

GetAccountIncomeCost 查询收入及支出

func (*Client) GetMemberBindBankCardH5Url

GetMemberBindBankCardH5Url 会员绑卡相关页面

func (*Client) GetMemberEsignCreateH5Url

GetMemberEsignCreateH5Url 获取独立电子签约H5 Url

func (*Client) GetMemberMerchantTerminalH5Url

GetMemberMerchantTerminalH5Url 获取会员商户在线增终H5Url

func (*Client) GetMemberOpenPartH5Url

GetMemberOpenPartH5Url 获取开户进阶H5 Url

func (*Client) GetMemberOtherChannelSubMerchant

GetMemberOtherChannelSubMerchant 查询渠道子商户

func (*Client) GetMemberTransferPayAccount

GetMemberTransferPayAccount 查询转账支付打款账户

func (*Client) GetMemberWithdrawSettleRecord

GetMemberWithdrawSettleRecord 查询会员结算记录

func (*Client) GetOrderDetailInfo

func (t *Client) GetOrderDetailInfo(params models.GetOrderDetailInfoParams) (body *models.BaseResponse[models.GetOrderDetailInfoResult], err error)

GetOrderDetailInfo 查询订单详细信息

func (*Client) GetOrderPayStatus

func (t *Client) GetOrderPayStatus(params models.GetOrderPayStatusParams) (body *models.BaseResponse[models.GetOrderPayStatusResult], err error)

GetOrderPayStatus 查询订单支付状态

func (*Client) GetOrderRefundStatus

func (t *Client) GetOrderRefundStatus(params models.GetOrderRefundStatusParams) (body *models.BaseResponse[models.GetOrderRefundStatusResult], err error)

GetOrderRefundStatus 查询订单退款状态

func (*Client) GetOrderStatus

func (t *Client) GetOrderStatus(params models.GetOrderStatusParams) (body *models.BaseResponse[models.GetOrderStatusResult], err error)

GetOrderStatus 查询订单状态

func (*Client) GetSplitRule

func (t *Client) GetSplitRule(params models.GetSplitRuleParams) (body *models.BaseResponse[models.GetSplitRuleResult], err error)

GetSplitRule 获取分账规则

func (*Client) GetTrustAccountBalance

GetTrustAccountBalance 查询账户余额

func (*Client) GetUnionPayUserId

func (t *Client) GetUnionPayUserId(params models.GetUnionPayUserIdParams) (body *models.BaseResponse[models.GetUnionPayUserIdResult], err error)

GetUnionPayUserId 获取银联UserId

func (*Client) ImageRelation

func (t *Client) ImageRelation(params models.ImageRelationParams) (body *models.BaseResponse[models.ImageRelationResult], err error)

ImageRelation 图片关联业务接口

func (*Client) ImageUpload

func (t *Client) ImageUpload(imageType, imageName string, imageFile *os.File) (body *models.BaseResponse[models.ImageUploadResult], err error)

ImageUpload [imageType]可选值jpg、png、bmp、gif;

func (*Client) ImageUploadFromBytes

func (t *Client) ImageUploadFromBytes(imageType, imageName string, imageBytes []byte) (body *models.BaseResponse[models.ImageUploadResult], err error)

ImageUploadFromBytes [imageType]可选值jpg、png、bmp、gif;

func (*Client) MerchantCommissionBalanceSplit

MerchantCommissionBalanceSplit 商户佣金专用账户分账

func (*Client) MerchantRsaDecrypt

func (t *Client) MerchantRsaDecrypt(body []byte) (decryptRes []byte, err error)

MerchantRsaDecrypt 商家平台Rsa私钥解密

func (*Client) NotifyVerify

func (t *Client) NotifyVerify(notifyBody models.NotifyBody) (verifyPass bool)

func (*Client) OrderActionConfirm

func (t *Client) OrderActionConfirm(params models.OrderActionConfirmParams) (body *models.BaseResponse[models.OrderActionConfirmResult], err error)

OrderActionConfirm 订单确认(短信)

func (*Client) OrderConsume

func (t *Client) OrderConsume(params models.OrderConsumeParams) (body *models.BaseResponse[models.OrderConsumeResult], err error)

OrderConsume 消费

func (*Client) OrderConsumeBatchPay

func (t *Client) OrderConsumeBatchPay(params models.OrderConsumeBatchPayParams) (body *models.BaseResponse[models.OrderConsumeBatchPayResult], err error)

OrderConsumeBatchPay 批量支付消费订单(合单支付)

func (*Client) OrderConsumeClose

func (t *Client) OrderConsumeClose(params models.OrderConsumeCloseParams) (body *models.BaseResponse[models.OrderConsumeCloseResult], err error)

OrderConsumeClose 关闭订单交易,该功能只支持消费支付方式为JSAPI,说明:关单交易只能对主扫支付场景下,未完成的支付交易进行关单,NATIVE交易不可以关单。

func (*Client) OrderConsumeComplete

func (t *Client) OrderConsumeComplete(params models.OrderConsumeCompleteParams) (body *models.BaseResponse[models.OrderConsumeCompleteResult], err error)

OrderConsumeComplete 完成订单(确权分账)

func (*Client) OrderConsumePay

func (t *Client) OrderConsumePay(params models.OrderConsumePayParams) (body *models.BaseResponse[models.OrderConsumePayResult], err error)

OrderConsumePay 支付消费(拆单支付)

func (*Client) OrderConsumeRefund

func (t *Client) OrderConsumeRefund(params models.OrderConsumeRefundParams) (body *models.BaseResponse[models.OrderConsumeRefundResult], err error)

OrderConsumeRefund 退款消费

func (*Client) QueryAccountFeeList

func (t *Client) QueryAccountFeeList(params models.QueryAccountFeeListParams) (body *models.BaseResponse[models.QueryAccountFeeListResult], err error)

QueryAccountFeeList 查询账户手续费记录

func (*Client) QueryAccountFeeUnCollect

QueryAccountFeeUnCollect 查询账户手续费欠款

func (*Client) QueryMemberBindBankCard

QueryMemberBindBankCard 查询绑定银行卡列表

func (*Client) QueryMemberChannelReal

QueryMemberChannelReal 查询支付宝微信实名认证

func (*Client) QueryMemberEsignByContractNo

func (t *Client) QueryMemberEsignByContractNo(params models.QueryMemberEsignParams) (body *models.BaseResponse[models.QueryMemberEsignByContractNoResult], err error)

QueryMemberEsignByContractNo 根据合同号查询电子合同

func (*Client) QueryMemberEsignByProjectCode

func (t *Client) QueryMemberEsignByProjectCode(params models.QueryMemberEsignParams) (body *models.BaseResponse[models.QueryMemberEsignByProjectCodeResult], err error)

QueryMemberEsignByProjectCode 根据电子合同签约授权号查询电子合同

func (*Client) QueryMemberInfo

func (t *Client) QueryMemberInfo(params models.QueryMemberInfoParams) (body *models.BaseResponse[models.QueryMemberInfoResult], err error)

QueryMemberInfo 查询会员信息

func (*Client) QueryMemberMerchant

func (t *Client) QueryMemberMerchant(params models.QueryMemberMerchantParams) (body *models.QueryMemberMerchantResult, err error)

QueryMemberMerchant 查询会员商户

func (*Client) QueryMemberMerchantQuota

QueryMemberMerchantQuota 查询商户支付收单限额

func (*Client) QueryMemberSplitScale

QueryMemberSplitScale 查询分账比例

func (*Client) QueryOrderReceipt

func (t *Client) QueryOrderReceipt(params models.QueryOrderReceiptParams) (body *models.BaseResponse[models.QueryOrderReceiptResult], err error)

QueryOrderReceipt 查询电子回单

func (*Client) RemoveSplitRule

func (t *Client) RemoveSplitRule(params models.RemoveSplitRuleParams) (body *models.BaseResponse[models.RemoveSplitRuleResult], err error)

RemoveSplitRule 删除分账规则

func (*Client) ReplenishMemberMerchantAttachment

ReplenishMemberMerchantAttachment 补录商户附件

func (*Client) ResumeSplitRule

func (t *Client) ResumeSplitRule(params models.ResumeSplitRuleParams) (body *models.BaseResponse[models.ResumeSplitRuleResult], err error)

ResumeSplitRule 启用分账规则

func (*Client) RevokeSplit

func (t *Client) RevokeSplit(params models.RevokeSplitParams) (body *models.BaseResponse[models.RevokeSplitResult], err error)

RevokeSplit 撤销分账,只支持分账全额撤销

func (*Client) RevokeTransfer

func (t *Client) RevokeTransfer(params models.TransferParams) (body *models.BaseResponse[models.RevokeTransferResult], err error)

RevokeTransfer 平台转账撤销

func (*Client) SetMemberWithdrawSettleCard

SetMemberWithdrawSettleCard 设置会员结算卡

func (*Client) StopSplitRule

func (t *Client) StopSplitRule(params models.StopSplitRuleParams) (body *models.BaseResponse[models.StopSplitRuleResult], err error)

StopSplitRule 停用分账规则

func (*Client) SubmitMemberMerchantReconsider

SubmitMemberMerchantReconsider 进件会员商户复议

func (*Client) Transfer

func (t *Client) Transfer(params models.TransferParams) (body *models.BaseResponse[models.TransferResult], err error)

Transfer 平台补贴商户会员

func (*Client) UnbindMemberMerchant

func (t *Client) UnbindMemberMerchant(params models.UnbindMemberMerchantParams) (body *models.BaseResponse[models.UnbindMemberMerchantResult], err error)

UnbindMemberMerchant 商户解绑

func (*Client) UnfreezeAccountBalance

UnfreezeAccountBalance 解冻账户余额

func (*Client) UpdateMemberBankCardContact

UpdateMemberBankCardContact 修改银行卡联行号

func (*Client) Verify

func (t *Client) Verify(sign string, body []byte) (verifyPass bool)

Verify [sign] base64签名字符串, [body] 待验证签名内容

func (*Client) Withdraw

func (t *Client) Withdraw(params models.WithdrawParams) (body *models.BaseResponse[models.WithdrawResult], err error)

Withdraw 提现(手动结算)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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