Interface AlipayCreateRequestStrategy
-
- All Known Implementing Classes:
DefaultAlipayCreateRequestStrategy
public interface AlipayCreateRequestStrategyPrepares payment related content before the request is created
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcreateDirectPayUrl(AlipayDirectPayRequestData requestData)Creates direct_pay_url from request datajava.lang.StringcreateRefundUrl(AlipayRefundRequestData refundData)Creates refund url by alipay refund request dataAlipayRawCancelPaymentResultsubmitCancelPaymentRequest(AlipayCancelPaymentRequestData closeRequest)Sends close request with POST method to alipayAlipayRawPaymentStatussubmitPaymentStatusRequest(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
-
-