Interface SapDigitalPaymentFacade
- All Known Implementing Classes:
DefaultSapDigitalPaymentFacade
public interface SapDigitalPaymentFacade
Generic facade interface for SAP DIgital payment. Facade responsible for interacting with the Service to get the
registration URL from SAP Digital payment and start the registered card poll process
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePollRegisteredCardProcess(String sessionId) Creates the registration card polling processFetch the registration URL from the SAP Digital payment.Get the registration details for digital paymentspollAndSave(String sessionId) Polls the registered card
-
Method Details
-
getCardRegistrationUrl
String getCardRegistrationUrl()Fetch the registration URL from the SAP Digital payment. Application is redirected to this URL to register the card with SAP Digital payment- Returns:
- String
-
createPollRegisteredCardProcess
Creates the registration card polling process- Parameters:
sessionId- - session-id is passed to digital-payments to get the card details.
-
pollAndSave
Polls the registered card- Parameters:
sessionId- session id of digital payment- Returns:
- Card Details
-
getRegistrationUrl
DigitalPaymentsRegistrationData getRegistrationUrl()Get the registration details for digital payments- Returns:
- registrations details of digital payment
-