Interface ProvisioningBusinessService

  • All Superinterfaces:
    BusinessService

    public interface ProvisioningBusinessService
    extends BusinessService
    This service is responsible to communicate to CPS and entertain the requests received from CPS via push notifications. Cards profiles and card credentials are received in the application through this service.

    There are two modes of operations
    • Push mode: CPS will send the push to perform actions
    • Pull mode: Application needs to do a operation, so application will ask to CPS to send the push payload
    • Method Detail

      • processIncomingMessage

        void processIncomingMessage​(android.os.Bundle pushMessageBundle,
                                    PushServiceListener listener)
        Processes the received push message. If the message is not supported, it sends the message back to the application. The push message shall trigger the conversation to take place and the CPS will be sending the commands to the SDK
        This is a push mode operation, CPS can send push notification to sdk any time even the application is in background.
        Parameters:
        pushMessageBundle - received push message bundle from GCM (payload from CPS in the bundle)
        listener - PushServicelistener to send callback to the application.
      • sendActivationCode

        void sendActivationCode​(EnrollingServiceListener listener)
        Sends the request to CPS to verify the activation code entered by user.
        After enrollment, application needs to verify activation code in order to start the provision the card and credentials for the card
        Parameters:
        listener - - EnrollingServiceListener service listener to provide the code and callback after completion the request
      • sendRequestForReplenishment

        void sendRequestForReplenishment​(java.lang.String tokenizedCardId,
                                         PushServiceListener listener)
        This is a pull mode request to CPS server to replenish the card.
        When the card is out of credentials, then application may need to ask for credentials to server to continue to the payments.
        After this request, CPS server will send a push for the credentials.
        Parameters:
        tokenizedCardId - - card id to replenish.
        listener - - PushServicelistener to send callback to the application.
      • sendRequestForReplenishment

        void sendRequestForReplenishment​(java.lang.String tokenizedCardId,
                                         PushServiceListener listener,
                                         boolean isForceReplenishment)
        This is a pull mode request to CPS server to replenish the card.
        When the card is out of credentials, then application may need to ask for credentials to server to continue to the payments.
        After this request, CPS server will send a push for the credentials.
        Parameters:
        tokenizedCardId - - card id to replenish.
        listener - - PushServicelistener to send callback to the application.
        isForceReplenishment - - Boolean flag for MPA to force replenishment request call even if replenishment is not needed for the selected card.
      • updatePushToken

        void updatePushToken​(java.lang.String pushToken,
                             PushServiceListener listener)
        This is a pull mode request to CPS server to update the GCM token.
        Parameters:
        pushToken - - GCM push token.
        listener - - PushServicelistener to send callback to the application.
      • getAccessToken

        void getAccessToken​(java.lang.String digitalCardId,
                            GetAccessTokenMode refresh,
                            AccessTokenListener listener)
        This is a pull mode request to CPS server to retrieve access token.
        Parameters:
        digitalCardId - - Digitalized card identifier.
        Digitized card ID shared by the HCE platform components (Different than token ID)
        refresh - - Indicates should access token be retrieved from CPS server, else will be retrieved from library's storage.
        listener - - AccessTokenListener to send callback to the application.
      • sendRequestForODACertificateRenewal

        void sendRequestForODACertificateRenewal​(java.lang.String tokenizedCardId,
                                                 PushServiceListener listener)
        This is a pull mode request to CPS server to renew ODA certificate.
        Parameters:
        tokenizedCardId - - Digitalized card identifier.
        listener - - PushServiceListener to send callback to the application.