Interface PaymentGatewayPaymentModificationService
- All Superinterfaces:
PaymentGatewayTypeAware
This service is responsible for interacting with the payment gateway to modify a payment's
paymentMethodProperties.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionProvides the set ofPaymentInfo.getPaymentMethodProperties()
map keys for any properties that declare a callback url used to redirect back to a Broadleaf context following an interaction like 3DS verification or a HPP interaction.modifyPaymentMethodProperties
(@NonNull PaymentInfo paymentInfo, String applicationId, String tenantId) Modify the givenPaymentInfo.getPaymentMethodProperties()
for alternative values used by the gateway.modifyPaymentMethodProperties
(@NonNull Map<String, String> paymentMethodProperties, String applicationId, String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
getGatewayType
-
Method Details
-
modifyPaymentMethodProperties
@Deprecated(forRemoval=true) default Map<String,String> modifyPaymentMethodProperties(@NonNull @NonNull Map<String, String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.Modify the givenpaymentMethodProperties
for alternative values used by the gateway. In most cases, this involves swapping a provided payment representation for a different style of representation. For example, swapping a digital wallet token for the payment gateway's token.- Parameters:
paymentMethodProperties
- the payment method propertiesapplicationId
- the application idtenantId
- the tenant id- Returns:
- the modified payment method properties
- Throws:
PaymentMethodPropertiesModificationException
- if an error occurred during the modification of the payment method properties
-
modifyPaymentMethodProperties
default Map<String,String> modifyPaymentMethodProperties(@NonNull @NonNull PaymentInfo paymentInfo, @Nullable String applicationId, @Nullable String tenantId) Modify the givenPaymentInfo.getPaymentMethodProperties()
for alternative values used by the gateway. In most cases, this involves swapping a provided payment representation for a different style of representation. For example, swapping a digital wallet token for the payment gateway's token.- Parameters:
paymentInfo
- the information about paymentapplicationId
- the application idtenantId
- the tenant id- Returns:
- the modified payment method properties
- Throws:
PaymentMethodPropertiesModificationException
- if an error occurred during the modification of the payment method properties
-
getCallbackUrlKeys
Provides the set ofPaymentInfo.getPaymentMethodProperties()
map keys for any properties that declare a callback url used to redirect back to a Broadleaf context following an interaction like 3DS verification or a HPP interaction.- Returns:
- a set of
PaymentInfo.getPaymentMethodProperties()
map keys
-
modifyPaymentMethodProperties(PaymentInfo, String, String)