Class AbstractVerifoneTokenService
- java.lang.Object
-
- com.broadleafcommerce.vendor.verifone.service.AbstractVerifoneTokenService
-
- Direct Known Subclasses:
VerifonePaymentModificationService
,VerifoneSavedPaymentMethodModificationService
public abstract class AbstractVerifoneTokenService extends Object
An abstract class that has the common method to manipulate with the Verifone token that is used by the Payment or by the Saved Payment method.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description AbstractVerifoneTokenService(VerifoneProvider verifoneProvider, VerifoneConfigurationProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
buildCreateReuseTokenRequest(@NonNull Map<String,String> paymentMethodProperties, String applicationId, String tenantId)
protected Map<String,String>
createReuseToken(@NonNull Map<String,String> paymentMethodProperties, String applicationId, String tenantId)
Communicates with Verifone APIs to convert an encrypted card into a reuse tokenprotected VerifoneConfigurationProperties
getProperties()
protected VerifoneProvider
getVerifoneProvider()
-
-
-
Constructor Detail
-
AbstractVerifoneTokenService
public AbstractVerifoneTokenService(VerifoneProvider verifoneProvider, VerifoneConfigurationProperties properties)
-
-
Method Detail
-
createReuseToken
protected Map<String,String> createReuseToken(@NonNull @NonNull Map<String,String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId)
Communicates with Verifone APIs to convert an encrypted card into a reuse token- Parameters:
paymentMethodProperties
- the payment method properties from a PTS paymentapplicationId
- the id for the current applicationtenantId
- the id for the current tenant- Returns:
- Reuse token properties
-
buildCreateReuseTokenRequest
protected Map<String,Object> buildCreateReuseTokenRequest(@NonNull @NonNull Map<String,String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId)
-
getVerifoneProvider
protected VerifoneProvider getVerifoneProvider()
-
getProperties
protected VerifoneConfigurationProperties getProperties()
-
-