Interface StripeCustomerNotificationService

All Known Implementing Classes:
DefaultStripeCustomerNotificationService

public interface StripeCustomerNotificationService
This service is responsible for building the notification that should be sent to the customer.
Author:
Dima Myroniuk (dmyroniuk)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification
    buildMandateConfirmationNotification(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, String paymentIntentId)
    Builds the mandate confirmation notification that should be sent to the customer after the PaymentIntent is confirmed.
    com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification
    buildMandateConfirmationNotificationForSavedPaymentMethod(com.broadleafcommerce.paymentgateway.domain.SavedPaymentMethodInfo savedPaymentMethodInfo, String applicationId, String tenantId)
    Builds the mandate confirmation notification that should be sent to the customer after the saved payment method is created.
  • Method Details

    • buildMandateConfirmationNotification

      @Nullable com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification buildMandateConfirmationNotification(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, String paymentIntentId)
      Builds the mandate confirmation notification that should be sent to the customer after the PaymentIntent is confirmed.
      Parameters:
      paymentRequest - the payment request
      paymentResponse - the payment response
      paymentIntentId - the payment intent ID
      Returns:
      the notification that should be sent to the customer, or null if it is not needed to send anything
    • buildMandateConfirmationNotificationForSavedPaymentMethod

      @Nullable com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification buildMandateConfirmationNotificationForSavedPaymentMethod(com.broadleafcommerce.paymentgateway.domain.SavedPaymentMethodInfo savedPaymentMethodInfo, @Nullable String applicationId, @Nullable String tenantId)
      Builds the mandate confirmation notification that should be sent to the customer after the saved payment method is created.
      Parameters:
      savedPaymentMethodInfo - the saved payment method info
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the notification that should be sent to the customer, or null if it is not needed to send anything