Interface SapDigitalPaymentClient
-
public interface SapDigitalPaymentClientClient to connect to SAP Digital payment using Charon API.
-
-
Method Summary
-
-
-
Method Detail
-
getRegistrationUrl
@Deprecated(since="1905.2004") @GET @Produces("application/json") @Path("/cards/getregistrationurl?CompanyCode=${CompanyCode}&CustomerCountry=${CustomerCountry}&PaymentMethod=${PaymentMethod}&RoutingCustomParameterValue=${RoutingCustomParameterValue}") rx.Observable<CisSapDigitalPaymentRegistrationUrlResult> getRegistrationUrl() throws java.util.concurrent.TimeoutExceptionDeprecated.Fetch the Registration URL and the session ID from SAP Digital payment- Returns:
- CisSapDigitalPaymentRegistrationUrlResult
- Throws:
java.util.concurrent.TimeoutException
-
getRegistrationUrl
@POST @Produces("application/json") @Path("/cards/getregistrationurl") CisSapDigitalPaymentRegistrationUrlResult getRegistrationUrl(DigitalPaymentsRegistrationRequest registrationRequestModel) throws java.util.concurrent.TimeoutExceptionFetch the Registration URL and the session ID from SAP Digital payment- 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- session id- Returns:
- CisSapDigitalPaymentPollRegisteredCardResult
-
authorizatePayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/authorizations") rx.Observable<CisSapDigitalPaymentAuthorizationResultList> authorizatePayment(CisSapDigitalPaymentAuthorizationRequestList authorizationRequests)Authorize the payment- Parameters:
authorizationRequests- authorization request- Returns:
- CisSapDigitalPaymentAuthorizationResultList
-
deleteCard
@POST @Produces("application/json") @Consumes("application/json") @Path("/cards/delete") rx.Observable<CisSapDigitalPaymentCardDeletionResultList> deleteCard(CisSapDigitalPaymentCardDeletionRequestList deletCardRequests)Delete the card- Parameters:
deletCardRequests- delete card Request- Returns:
- CisSapDigitalPaymentCardDeletionResultList
-
chargePayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/charges") rx.Observable<CisSapDigitalPaymentChargeResultList> chargePayment(CisSapDigitalPaymentChargeRequestList chargeRequests)Charge the payment- Parameters:
chargeRequests- charge requests- Returns:
- CisSapDigitalPaymentChargeResultList
-
refundPayment
@POST @Produces("application/json") @Consumes("application/json") @Path("/refunds") rx.Observable<CisSapDigitalPaymentRefundResultList> refundPayment(CisSapDigitalPaymentRefundRequestList refundRequests)Refund the payment- Parameters:
refundRequests- refund requests- Returns:
- CisSapDigitalPaymentRefundResultList
-
poll
@GET @Produces("application/json") @Path("/cards/poll/{sessionId}") DigitalPaymentsPollModel poll(@PathParam("sessionId") java.lang.String sessionId)Poll the registered Card- Parameters:
sessionId- sessionId of digital payment- Returns:
- poll model
-
fetchRegistrationUrl
@GET @Produces("application/json") @Path("/cards/getregistrationurl?CompanyCode=${CompanyCode}&CustomerCountry=${CustomerCountry}&PaymentMethod=${PaymentMethod}&RoutingCustomParameterValue=${RoutingCustomParameterValue}") DigitalPaymentsRegistrationModel fetchRegistrationUrl()Fetches the new card registration details for payment card- Returns:
- model for registration url
-
fetchRegistrationUrl
@POST @Produces("application/json") @Path("/cards/getregistrationurl") DigitalPaymentsRegistrationModel fetchRegistrationUrl(DigitalPaymentsRegistrationRequest registrationRequestModel) throws java.util.concurrent.TimeoutExceptionFetch the Registration URL and the session ID from SAP Digital payment- Throws:
java.util.concurrent.TimeoutException
-
-