Interface PaymentGatewayPaymentSummaryService
- All Superinterfaces:
PaymentGatewayTypeAware
This service used for modifying PaymentSummary objects as they're built based on a
PaymentTransactionServices Payment.
- Author:
- Chris Kittrell (ckittrell)
-
Method Summary
Modifier and TypeMethodDescriptiondefault NextAction
buildNextActionFromPayment
(PaymentInfo paymentInfo, String applicationId, String tenantId) Builds aNextAction
based on the providedPaymentInfo
.Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
getGatewayType
-
Method Details
-
buildNextActionFromPayment
@Nullable default NextAction buildNextActionFromPayment(PaymentInfo paymentInfo, @Nullable String applicationId, @Nullable String tenantId) Builds aNextAction
based on the providedPaymentInfo
. The assumption is that this method is only used if the related payment does not have any transactions. Therefore, thisNextAction
serves as a default action.- Parameters:
paymentInfo
- the information about payment * @param applicationId the application id * @param tenantId the tenant id- Returns:
- a
NextAction
based on the providedPaymentInfo
, or null if a next action cannot/should not be declared for the payment.
-