cn.beecloud
类 BCPay

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

public class BCPay
extends Object

BeeCloud JAVA SDK核心类, 包括支付、退款、查询、企业打款、批量退款等接口

从以下版本开始:
2015/7/11
作者:
Ray

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

构造方法详细信息

BCPay

public BCPay()
方法详细信息

startBCPay

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

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

startBCAuth

public static BCAuth startBCAuth(BCAuth auth)
                          throws BCException
鉴权接口

参数:
auth - BCAuth (必填) 鉴权参数
返回:
调起BeeCloud鉴权后的返回结果
抛出:
BCException

startBCTransfer

public static void startBCTransfer(BCTransferParameter bcTransferParameter)
                            throws BCException
代付接口

参数:
bcTransferParameter - BCTransferParameter (必填) 支付参数
抛出:
BCException

startBCRefund

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

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

startQueryBill

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

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

startQueryBillById

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

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

startQueryBillCount

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

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

startQueryRefund

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

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

startQueryRefundById

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

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

startQueryRefundCount

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

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

startRefundUpdate

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

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

startBCInternatioalPay

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

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

startTransfer

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

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

startTransfers

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

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

startBatchRefund

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

参数:
batchRefund - (必填) 预退款批量审核参数
返回:
批量审核结果
抛出:
BCException

verifySign

public static boolean verifySign(String sign,
                                 String timestamp)
Webhook接收签名验证接口

参数:
sign - (必填) Webhook提供的签名
timestamp - (必填) Webhook提供的timestamp,注意是String格式
返回:
验签结果


Copyright © 2016. All rights reserved.