Interface AlipayCreateRequestStrategy
- All Known Implementing Classes:
DefaultAlipayCreateRequestStrategy
public interface AlipayCreateRequestStrategy
Prepares payment related content before the request is created
-
Method Summary
Modifier and TypeMethodDescriptioncreateDirectPayUrl(AlipayDirectPayRequestData requestData) Creates direct_pay_url from request datacreateRefundUrl(AlipayRefundRequestData refundData) Creates refund url by alipay refund request datasubmitCancelPaymentRequest(AlipayCancelPaymentRequestData closeRequest) Sends close request with POST method to alipaysubmitPaymentStatusRequest(AlipayPaymentStatusRequestData checkRequest) Sends check request with post method to alipay
-
Method Details
-
createDirectPayUrl
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 ReflectiveOperationException Sends check request with post method to alipay- Parameters:
checkRequest- the request data- Returns:
- payment status
AlipayRawPaymentStatus - Throws:
ReflectiveOperationException- throw ReflectiveOperationException when relective request parameters failed
-
submitCancelPaymentRequest
AlipayRawCancelPaymentResult submitCancelPaymentRequest(AlipayCancelPaymentRequestData closeRequest) throws ReflectiveOperationException Sends close request with POST method to alipay- Parameters:
closeRequest- the request data- Returns:
- The result of close request
AlipayRawCancelPaymentResult - Throws:
ReflectiveOperationException- throw ReflectiveOperationException when relective request parameters failed
-
createRefundUrl
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
-