Class CisPaymentIntegrationTestHelper


  • public final class CisPaymentIntegrationTestHelper
    extends java.lang.Object
    This Helper class contains methods useful for supporting integration tests in the Cis payment extension.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<org.apache.http.message.BasicNameValuePair> convertMap​(java.util.Map<java.lang.String,​java.lang.String> formData)  
      static java.util.Map<java.lang.String,​java.lang.String> createNewProfile​(java.lang.String cybersourceUrl, java.util.List<org.apache.http.message.BasicNameValuePair> formData)  
      static java.util.List<org.apache.http.message.BasicNameValuePair> getFormDataMapMissingDetails()  
      static java.lang.String getMerchantID()  
      static java.lang.String getPublicDigest​(java.lang.String customValues)  
      static java.lang.String getSerialNumber()  
      static java.lang.String getSharedSecret()  
      static java.util.List<org.apache.http.message.BasicNameValuePair> getValidFormDataMap()  
      static java.util.Map<java.lang.String,​java.lang.String> insertSignature​(java.lang.String amount, java.lang.String currency, java.lang.String orderPage_transactionType, java.lang.String subscriptionAmount, java.lang.String subscriptionStartDate, java.lang.String subscriptionFrequency, java.lang.String subscriptionNumberOfPayments, java.lang.String subscriptionAutomaticRenew)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CisPaymentIntegrationTestHelper

        public CisPaymentIntegrationTestHelper()
    • Method Detail

      • createNewProfile

        public static java.util.Map<java.lang.String,​java.lang.String> createNewProfile​(java.lang.String cybersourceUrl,
                                                                                              java.util.List<org.apache.http.message.BasicNameValuePair> formData)
                                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getValidFormDataMap

        public static java.util.List<org.apache.http.message.BasicNameValuePair> getValidFormDataMap()
      • getFormDataMapMissingDetails

        public static java.util.List<org.apache.http.message.BasicNameValuePair> getFormDataMapMissingDetails()
      • insertSignature

        public static java.util.Map<java.lang.String,​java.lang.String> insertSignature​(java.lang.String amount,
                                                                                             java.lang.String currency,
                                                                                             java.lang.String orderPage_transactionType,
                                                                                             java.lang.String subscriptionAmount,
                                                                                             java.lang.String subscriptionStartDate,
                                                                                             java.lang.String subscriptionFrequency,
                                                                                             java.lang.String subscriptionNumberOfPayments,
                                                                                             java.lang.String subscriptionAutomaticRenew)
      • getMerchantID

        public static java.lang.String getMerchantID()
      • getSharedSecret

        public static java.lang.String getSharedSecret()
      • getSerialNumber

        public static java.lang.String getSerialNumber()
      • getPublicDigest

        public static java.lang.String getPublicDigest​(java.lang.String customValues)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • convertMap

        public static java.util.List<org.apache.http.message.BasicNameValuePair> convertMap​(java.util.Map<java.lang.String,​java.lang.String> formData)