Interface AlipayCreateRequestStrategy
-
- All Known Implementing Classes:
DefaultAlipayCreateRequestStrategy
public interface AlipayCreateRequestStrategy
Prepares payment related content before the request is created
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
createDirectPayUrl(AlipayDirectPayRequestData requestData)
Creates direct_pay_url from request datajava.lang.String
createRefundUrl(AlipayRefundRequestData refundData)
Creates refund url by alipay refund request dataAlipayRawCancelPaymentResult
submitCancelPaymentRequest(AlipayCancelPaymentRequestData closeRequest)
Sends close request with POST method to alipayAlipayRawPaymentStatus
submitPaymentStatusRequest(AlipayPaymentStatusRequestData checkRequest)
Sends check request with post method to alipay
-
-
-
Method Detail
-
createDirectPayUrl
java.lang.String createDirectPayUrl(AlipayDirectPayRequestData requestData) throws AlipayException
Creates direct_pay_url from request data- Parameters:
requestData
- the request data- Returns:
- created direct pay url
- Throws:
AlipayException
- throw AlipayException when creating url failed
-
submitPaymentStatusRequest
AlipayRawPaymentStatus submitPaymentStatusRequest(AlipayPaymentStatusRequestData checkRequest) throws java.lang.ReflectiveOperationException
Sends check request with post method to alipay- Parameters:
checkRequest
- the request data- Returns:
- payment status
AlipayRawPaymentStatus
- Throws:
java.lang.ReflectiveOperationException
- throw ReflectiveOperationException when relective request parameters failed
-
submitCancelPaymentRequest
AlipayRawCancelPaymentResult submitCancelPaymentRequest(AlipayCancelPaymentRequestData closeRequest) throws java.lang.ReflectiveOperationException
Sends close request with POST method to alipay- Parameters:
closeRequest
- the request data- Returns:
- The result of close request
AlipayRawCancelPaymentResult
- Throws:
java.lang.ReflectiveOperationException
- throw ReflectiveOperationException when relective request parameters failed
-
createRefundUrl
java.lang.String createRefundUrl(AlipayRefundRequestData refundData) throws AlipayException
Creates refund url by alipay refund request data- Parameters:
refundData
- refund request data needed by alipayAlipayRefundRequestData
- Returns:
- created url by the refundData
- Throws:
AlipayException
- throw when create refund url error
-
-