cn.beecloud
类 BCPayMultiApp

java.lang.Object
  继承者 cn.beecloud.BCPayMultiApp

public class BCPayMultiApp
extends Object

主要为了一个商户下有多个收款APP使用,参考@BCPay

从以下版本开始:
2015/9/18
作者:
Gao

构造方法摘要
BCPayMultiApp(String appId, String testSecret, String appSecret, String masterSecret)
           
 
方法摘要
 BCBatchRefund startBatchRefund(BCBatchRefund batchRefund)
          发起预退款审核,包括批量否决和批量同意
 BCInternationlOrder startBCInternatioalPay(BCInternationlOrder order)
          境外支付(paypal)接口
 BCOrder startBCPay(BCOrder order)
          支付接口
 BCRefund startBCRefund(BCRefund refund)
          退款接口
 List<BCOrder> startQueryBill(BCQueryParameter para)
          订单查询(批量)接口
 BCOrder startQueryBillById(String objectId)
          订单查询(单笔,根据id)接口
 Integer startQueryBillCount(BCQueryParameter para)
          订单总数查询接口
 List<BCRefund> startQueryRefund(BCQueryParameter para)
          退款记录查询(批量)接口
 BCRefund startQueryRefundById(String objectId)
          退款查询接口(根据 id)
 Integer startQueryRefundCount(BCQueryParameter para)
          退款记录总数查询接口
 String startRefundUpdate(BCEumeration.PAY_CHANNEL channel, String refundNo)
          退款状态更新接口
 String startTransfer(TransferParameter para)
          单笔打款接口
 String startTransfers(TransfersParameter para)
          批量打款接口
static boolean verifySign(String sign, String timestamp)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BCPayMultiApp

public BCPayMultiApp(String appId,
                     String testSecret,
                     String appSecret,
                     String masterSecret)
方法详细信息

startBCPay

public BCOrder startBCPay(BCOrder order)
                   throws BCException
支付接口

参数:
order - BCOrder (必填) 支付参数
返回:
调起BeeCloud支付后的返回结果
抛出:
BCException

startBCRefund

public BCRefund startBCRefund(BCRefund refund)
                       throws BCException
退款接口

参数:
refund - BCRefund (必填) 退款参数
返回:
发起退款的返回结果
抛出:
BCException

startQueryBill

public List<BCOrder> startQueryBill(BCQueryParameter para)
                             throws BCException
订单查询(批量)接口

参数:
para - BCQueryParameter (必填) 订单查询参数
返回:
订单查询返回的结果
抛出:
BCException

startQueryBillById

public BCOrder startQueryBillById(String objectId)
                           throws BCException
订单查询(单笔,根据id)接口

参数:
objectId - (必填) 订单记录唯一标识
返回:
id查询返回结果
抛出:
BCException

startQueryBillCount

public Integer startQueryBillCount(BCQueryParameter para)
                            throws BCException
订单总数查询接口

参数:
para - BCQueryParameter (必填)订单总数查询参数
返回:
订单总数查询返回的结果
抛出:
BCException

startQueryRefund

public List<BCRefund> startQueryRefund(BCQueryParameter para)
                                throws BCException
退款记录查询(批量)接口

参数:
para - BCQueryParameter (必填)订单查询参数
返回:
退款查询返回的结果
抛出:
BCException

startQueryRefundById

public BCRefund startQueryRefundById(String objectId)
                              throws BCException
退款查询接口(根据 id)

参数:
objectId - (必填) 退款记录唯一标识
返回:
单笔退款记录查询返回结果
抛出:
BCException

startQueryRefundCount

public Integer startQueryRefundCount(BCQueryParameter para)
                              throws BCException
退款记录总数查询接口

参数:
para - BCQueryParameter (必填) 退款总数查询参数
返回:
退款总数查询返回的结果
抛出:
BCException

startRefundUpdate

public String startRefundUpdate(BCEumeration.PAY_CHANNEL channel,
                                String refundNo)
                         throws BCException
退款状态更新接口

参数:
refundNo - (必填)商户退款单号, 格式为:退款日期(8位) + 流水号(3~24 位)。不可重复,且退款日期必须是当天日期。流水号可以接受数字或英文字符,建议使用数字,但不可接受“000”。
channel - (必填) 渠道类型, 根据不同场景选择不同的支付方式,包含: YEE 易宝 WX 微信 KUAIQIAN 快钱 BD 百度
返回:
退款状态更新返回结果,包括(SUCCESS, PROCESSING, FAIL...)
抛出:
BCException

startTransfer

public String startTransfer(TransferParameter para)
                     throws BCException
单笔打款接口

参数:
para - TransferParameter (必填)单笔打款参数
返回:
如果channel类型是TRANSFER_CHANNEL.ALI_TRANSFER, 返回需要跳转支付的url, 否则返回空字符串
抛出:
BCException

startTransfers

public String startTransfers(TransfersParameter para)
                      throws BCException
批量打款接口

参数:
para - TransfersParameter (必填) 批量打款参数
返回:
批量打款跳转支付url
抛出:
BCException

startBatchRefund

public BCBatchRefund startBatchRefund(BCBatchRefund batchRefund)
                               throws BCException
发起预退款审核,包括批量否决和批量同意

参数:
batchRefund - (必填) 批量退款参数
返回:
BCBatchRefund
抛出:
BCException

startBCInternatioalPay

public BCInternationlOrder startBCInternatioalPay(BCInternationlOrder order)
                                           throws BCException
境外支付(paypal)接口

参数:
order - BCInternationlOrder (必填)
返回:
支付后返回的order
抛出:
BCException

verifySign

public static boolean verifySign(String sign,
                                 String timestamp)
参数:
sign - Webhook提供的签名
timestamp - Webhook提供的timestamp,注意是String格式
返回:
签名是否正确


Copyright © 2016. All rights reserved.