cn.beecloud
类 BCPay

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

public class BCPay
extends Object

This is the core class of BC payment for external invocation consist of start payment, start refund, start query bill start refund query and check refund status functionality.

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

构造方法摘要
BCPay()
           
 
方法摘要
static BCPayResult startBCPay(BCPayParameter para)
           
static BCPayResult startBCRefund(BCRefundParameter para)
           
static BCQueryResult startQueryBill(BCQueryParameter para)
           
static BCQueryResult startQueryBillById(String objectId)
          Bill Query by Id.
static BCQueryResult startQueryRefund(BCRefundQueryParameter para)
           
static BCQueryResult startQueryRefundById(String objectId)
          Bill Query by Id.
static BCQueryStatusResult startRefundUpdate(BCEumeration.PAY_CHANNEL channel, String refundNo)
           
static BCPayResult startTransfer(BCEumeration.PAY_CHANNEL channel, String batchNo, String accountName, List<TransferData> transferData)
           
static boolean verifySign(String sign, String timestamp)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BCPay

public BCPay()
方法详细信息

startBCPay

public static BCPayResult startBCPay(BCPayParameter para)
参数:
para - BCPayParameter支付参数 (必填)
返回:
调起比可支付后的返回结果

startBCRefund

public static BCPayResult startBCRefund(BCRefundParameter para)
参数:
para - BCRefundParameter退款参数
返回:
发起退款的返回结果

startQueryBill

public static BCQueryResult startQueryBill(BCQueryParameter para)
参数:
para - BCQueryParameter订单查询参数
返回:
订单查询返回的结果

startQueryBillById

public static BCQueryResult startQueryBillById(String objectId)
Bill Query by Id.

参数:
objectId - the id to query by.
返回:
BCQueryResult

startQueryRefund

public static BCQueryResult startQueryRefund(BCRefundQueryParameter para)
参数:
para - BCRefundQueryParameter}
返回:
退款查询返回的结果

startQueryRefundById

public static BCQueryResult startQueryRefundById(String objectId)
Bill Query by Id.

参数:
objectId - the id to query by.
返回:
BCQueryResult

startRefundUpdate

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

startTransfer

public static BCPayResult startTransfer(BCEumeration.PAY_CHANNEL channel,
                                        String batchNo,
                                        String accountName,
                                        List<TransferData> transferData)
参数:
channel - (必填)渠道类型, 暂时只支持ALI
batchNo - (必填) 批量付款批号, 此次批量付款的唯一标示,11-32位数字字母组合
accountName - (必填) 付款方的支付宝账户名, 支付宝账户名称,例如:毛毛
transferData - (必填) 付款的详细数据 {TransferData} 的 List集合。
返回:
BCPayResult

verifySign

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


Copyright © 2015. All rights reserved.