@Service public class PaymentService extends Object
| 构造器和说明 |
|---|
PaymentService()
默认构造方法
用于spring上下文
|
PaymentService(String paymentHost)
有参构造方法
用于非spring上下文
|
| 限定符和类型 | 方法和说明 |
|---|---|
CommonResult<RefundAttr> |
applyRefund(RefundApplyingParam param) |
CommonResult<CashierOrderAttr> |
createCashierOrder(CashierOrderCreatingParam param)
创建收银台订单
|
CommonResult<String> |
createQrCodeSvg(QrCodeSvgCreatingParam param)
创建二维码SVG
|
String |
getBankCardManagementLink(BankCardManagementLinkGettingParam param)
获取银行卡管理链接
|
String |
getCashierLink(CashierLinkGettingParam param)
获取收银台链接
|
CommonResult<CashierOrderIdAttr> |
getCashierOrderId(String requestBody)
获取收银台订单id
|
CommonResult<CashierAsyncNotificationAttr> |
receiveCashierAsyncNotification(String requestBody,
String paymentPublicKey)
接收收银台异步通知
|
CommonResult<RefundAsyncNotificationAttr> |
receiveRefundAsyncNotification(String requestBody,
String paymentPublicKey)
接收退款异步通知
|
public PaymentService()
public PaymentService(String paymentHost)
paymentHost - 聚合支付主机(http(s)://xxx:xxx(:xxx))public CommonResult<CashierOrderAttr> createCashierOrder(CashierOrderCreatingParam param)
param - 创建收银台订单参数public String getCashierLink(CashierLinkGettingParam param)
param - 获取收银台链接参数public String getBankCardManagementLink(BankCardManagementLinkGettingParam param)
param - 获取银行卡管理链接参数public CommonResult<CashierOrderIdAttr> getCashierOrderId(String requestBody)
requestBody - 异步通知请求体public CommonResult<CashierAsyncNotificationAttr> receiveCashierAsyncNotification(String requestBody, String paymentPublicKey)
requestBody - 异步通知请求体paymentPublicKey - 公钥(需提供给接入平台,用于验签)public CommonResult<RefundAttr> applyRefund(RefundApplyingParam param)
public CommonResult<RefundAsyncNotificationAttr> receiveRefundAsyncNotification(String requestBody, String paymentPublicKey)
requestBody - 异步通知请求体paymentPublicKey - 公钥(需提供给接入平台,用于验签)public CommonResult<String> createQrCodeSvg(QrCodeSvgCreatingParam param)
param - 创建二维码SVG参数Copyright © 2021. All rights reserved.