Class DefaultCreateSubscriptionRequestStrategy

    • Constructor Detail

      • DefaultCreateSubscriptionRequestStrategy

        public DefaultCreateSubscriptionRequestStrategy()
    • Method Detail

      • getRequestSignatureData

        protected SignatureData getRequestSignatureData()
      • getHostedOrderPageAppearanceConfiguration

        protected OrderPageAppearanceData getHostedOrderPageAppearanceConfiguration()
      • getOrderPageConfirmationData

        protected OrderPageConfirmationData getOrderPageConfirmationData​(java.lang.String responseUrl,
                                                                         java.lang.String merchantCallbackUrl)
      • getHostedOrderPageVersion

        protected java.lang.String getHostedOrderPageVersion()
      • setHostedOrderPageVersion

        public void setHostedOrderPageVersion​(java.lang.String hostedOrderPageVersion)
      • getHostedOrderPageTestCurrency

        protected java.lang.String getHostedOrderPageTestCurrency()
        This method is used to get the ISO currency code configured for the CyberSource Test Hosted Order Page configured in the Business Centre. This may be different to the currency being used for the live account.
        Returns:
        a three character representing the currency ISO code.
      • getSiteConfigProperty

        protected java.lang.String getSiteConfigProperty​(java.lang.String key)
      • getSetupFeeAmount

        protected java.math.BigDecimal getSetupFeeAmount()
        Gets the CyberSource setup fee, currently populated by a config value.
        Returns:
        the CyberSource setup fee amount
      • getMerchantId

        protected java.lang.String getMerchantId()
        Gets the CyberSource merchant ID.
        Returns:
        the CyberSource merchant ID
      • getSerialNumber

        protected java.lang.String getSerialNumber()
        Gets the CyberSource merchant's serial number that is used to encrypt and validate connections.
        Returns:
        the serial number downloaded from the CyberSource Business Centre.
      • getSharedSecret

        protected java.lang.String getSharedSecret()
        Gets the CyberSource merchant's shared secret that is used to encrypt and validate connections.
        Returns:
        the shared secret downloaded from the CyberSource Business Centre.
      • getCartService

        protected CartService getCartService()
      • setCartService

        public void setCartService​(CartService cartService)
      • setCustomerEmailResolutionService

        public void setCustomerEmailResolutionService​(CustomerEmailResolutionService customerEmailResolutionService)
      • setSiteConfigService

        public void setSiteConfigService​(SiteConfigService siteConfigService)