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 TypeMethodDescriptioncom.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotificationbuildMandateConfirmationNotification(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.PaymentCustomerNotificationbuildMandateConfirmationNotificationForSavedPaymentMethod(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 requestpaymentResponse- the payment responsepaymentIntentId- 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 infoapplicationId- the application idtenantId- the tenant id- Returns:
- the notification that should be sent to the customer, or null if it is not needed to send anything
-