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 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

      void createPollRegisteredCardProcess(String sessionId)
      Creates the registration card polling process
      Parameters:
      sessionId - - session-id is passed to digital-payments to get the card details.
    • pollAndSave

      DigitalPaymentsPollData pollAndSave(String sessionId)
      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