Class VerifoneAuthorizeRequestResponseTransformer

    • Constructor Detail

      • VerifoneAuthorizeRequestResponseTransformer

        public VerifoneAuthorizeRequestResponseTransformer​(VerifoneConfigurationProperties configProperties,
                                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                           VerifoneUtils verifoneUtils,
                                                           com.broadleafcommerce.common.extension.TypeFactory typeFactory)
    • Method Detail

      • canHandle

        public boolean canHandle​(@NonNull
                                 @NonNull String transactionType)
        Description copied from interface: VerifoneRequestResponseTransformer
        Checks if this transformer can handle the specified transaction type.
        Parameters:
        transactionType - the transaction type of the request
        Returns:
        true if this transformer can be used for the specified request
      • getStoredCredentials

        @Nullable
        protected VerifoneStoredCredentials getStoredCredentials​(@NonNull
                                                                 @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      • populateRequestWithEncryptedCardOrReuseToken

        protected void populateRequestWithEncryptedCardOrReuseToken​(@NonNull
                                                                    @NonNull Map<String,​Object> request,
                                                                    @NonNull
                                                                    @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      • addShippingInfo

        protected void addShippingInfo​(@NonNull
                                       @NonNull Map<String,​Object> request,
                                       @NonNull
                                       @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      • getEmail

        @Nullable
        protected String getEmail​(@NonNull
                                  @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      • formatPhoneNumber

        @Nullable
        protected Integer formatPhoneNumber​(@Nullable
                                            String phoneNumber)
      • getTypeFactory

        protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()