Package 

Interface IParkingPaymentServiceProvider

  • All Implemented Interfaces:

    
    public interface IParkingPaymentServiceProvider
    
                        

    This interface defines the payment data related methods that are requested for a proper running of the parking service. Client is responsible to provide an implementation of this interface.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract CommerceResponse<String> pay(PriceInfo priceInfo, String orderId, String clientSecret) This method will return the status of the confirm payment action.
      abstract Boolean hasPaymentCard() This method should confirm if the user has a payment card.
      abstract String getCard() This method should retrieve the user com.telenav.commerce.models.Card
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • pay

         abstract CommerceResponse<String> pay(PriceInfo priceInfo, String orderId, String clientSecret)

        This method will return the status of the confirm payment action.

        Parameters:
        priceInfo - the PriceInfo of the current parking order
        orderId - the id of the current parking order
        clientSecret - a temporary token which facilitates the validation of the user in the P97 database
      • hasPaymentCard

         abstract Boolean hasPaymentCard()

        This method should confirm if the user has a payment card.

      • getCard

         abstract String getCard()

        This method should retrieve the user com.telenav.commerce.models.Card