Interface SapDigitalPaymentClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description rx.Observable<CisSapDigitalPaymentAuthorizationResultList>authorizatePayment(CisSapDigitalPaymentAuthorizationRequestList authorizationRequests)Authorize the paymentrx.Observable<CisSapDigitalPaymentChargeResultList>chargePayment(CisSapDigitalPaymentChargeRequestList chargeRequests)Charge the paymentrx.Observable<CisSapDigitalPaymentCardDeletionResultList>deleteCard(CisSapDigitalPaymentCardDeletionRequestList deletCardRequests)Delete the cardrx.Observable<CisSapDigitalPaymentRegistrationUrlResult>getRegistrationUrl()Fetch the Registration URL and the session ID from SAP Digital paymentrx.Observable<CisSapDigitalPaymentPollRegisteredCardResult>pollRegisteredCard(java.lang.String sessionId)Poll the registered card using the session IDrx.Observable<CisSapDigitalPaymentRefundResultList>refundPayment(CisSapDigitalPaymentRefundRequestList refundRequests)Refund the payment
-
-
-
Method Detail
-
getRegistrationUrl
@GET @Produces("application/json") @Path("/cards/getregistrationurl?CompanyCode=${CompanyCode}&CustomerCountry=${CustomerCountry}&PaymentMethod=${PaymentMethod}&RoutingCustomParameterValue=${RoutingCustomParameterValue}") rx.Observable<CisSapDigitalPaymentRegistrationUrlResult> getRegistrationUrl() throws java.util.concurrent.TimeoutExceptionFetch the Registration URL and the session ID from SAP Digital payment- Parameters:
CompanyCode-CustomerCountry-PaymentMethod-PaymentType-- Returns:
- CisSapDigitalPaymentRegistrationUrlResult
- Throws:
java.util.concurrent.TimeoutException
-
pollRegisteredCard
@GET @Produces("application/json") @Path("/cards/poll/{sessionId}") rx.Observable<CisSapDigitalPaymentPollRegisteredCardResult> pollRegisteredCard(@PathParam("sessionId") java.lang.String sessionId)Poll the registered card using the session ID- Parameters:
sessionId-- Returns:
- CisSapDigitalPaymentPollRegisteredCardResult
-
authorizatePayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/authorizations") rx.Observable<CisSapDigitalPaymentAuthorizationResultList> authorizatePayment(CisSapDigitalPaymentAuthorizationRequestList authorizationRequests)Authorize the payment- Parameters:
authorizationRequests-- Returns:
- CisSapDigitalPaymentAuthorizationResultList
-
deleteCard
@POST @Produces("application/json") @Consumes("application/json") @Path("/cards/delete") rx.Observable<CisSapDigitalPaymentCardDeletionResultList> deleteCard(CisSapDigitalPaymentCardDeletionRequestList deletCardRequests)Delete the card- Parameters:
deletCardRequests-- Returns:
- CisSapDigitalPaymentCardDeletionResultList
-
chargePayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/charges") rx.Observable<CisSapDigitalPaymentChargeResultList> chargePayment(CisSapDigitalPaymentChargeRequestList chargeRequests)Charge the payment- Parameters:
chargeRequests-- Returns:
- CisSapDigitalPaymentChargeResultList
-
refundPayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/refunds") rx.Observable<CisSapDigitalPaymentRefundResultList> refundPayment(CisSapDigitalPaymentRefundRequestList refundRequests)Refund the payment- Parameters:
refundRequests-- Returns:
- CisSapDigitalPaymentRefundResultList
-
-