Class DefaultMyFatoorahSessionService

java.lang.Object
com.broadleafcommerce.myfatoorah.service.DefaultMyFatoorahSessionService
All Implemented Interfaces:
MyFatoorahSessionService

public class DefaultMyFatoorahSessionService extends Object implements MyFatoorahSessionService
Author:
Divyank Chavan.
  • Constructor Details

    • DefaultMyFatoorahSessionService

      public DefaultMyFatoorahSessionService(MyFatoorahProvider myFatoorahProvider)
  • Method Details

    • initiateSession

      public InitSessionResponse initiateSession(@Nullable String customerId, @Nullable String currencyCode, @Nullable String applicationId, @Nullable String tenantId)
      Description copied from interface: MyFatoorahSessionService
      This method is responsible for calling MyFatoorah init-session endpoint.
      Specified by:
      initiateSession in interface MyFatoorahSessionService
      Parameters:
      customerId - The optional customer id used to access MyFatoorah-stored saved payment methods.
      currencyCode - The currency code for this request
      applicationId - the application ID
      tenantId - the tenant ID
      Returns:
      The InitSessionResponse
    • getMyFatoorahProvider

      protected MyFatoorahProvider getMyFatoorahProvider()