java.lang.Object
de.hybris.platform.chinesepspalipayservices.alipay.AlipayUtil

@Deprecated(since="1811", forRemoval=true) public class AlipayUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 1811. use AlipayService replace
Deals with alipay common methods
  • Method Details

    • generateUrl

      public static String generateUrl(Map<String,String> sParaTemp, AlipayConfiguration alipayConfig) throws UnsupportedEncodingException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generates alipay url
      Parameters:
      sParaTemp - parameters for generating url
      alipayConfig - alipay configuration
      Returns:
      alipay url
      Throws:
      UnsupportedEncodingException - throw UnsupportedEncodingException when parameters contain unsupported encoding chars
    • postRequest

      public static String postRequest(Map<String,String> sParaTemp, AlipayConfiguration alipayConfig)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Simulates the http post request, uses this method to generate the XML response from alipay
      Parameters:
      sParaTemp - request parameters
      alipayConfig - alipay configuration
      Returns:
      XML response from alipay
    • paraFilter

      public static Map<String,String> paraFilter(Map<String,String> sArray)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Filters signature parameters
      Parameters:
      sArray - the request parameters
      Returns:
      filtered parameters
    • buildMysign

      public static String buildMysign(Map<String,String> sArray, String key, String signType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates signature
      Parameters:
      sArray - the request parameters
      key - private key
      signType - signature type
      Returns:
      signature
    • buildRequestPara

      protected static Map<String,String> buildRequestPara(Map<String,String> sParaTemp, String key, String signType)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • encrypt

      public static String encrypt(String signType, String preStr)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Encrypted by signature type
      Parameters:
      signType - signature type
      preStr - original string
      Returns:
      encrypted string
    • createLinkStringWithEncoding

      public static String createLinkStringWithEncoding(Map<String,String> params) throws UnsupportedEncodingException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Encodes alipay link url
      Parameters:
      params - the parameters userd for encoding url
      Returns:
      encoded url
      Throws:
      UnsupportedEncodingException - throw UnsupportedEncodingException when parameters contain unsupported encoding chars
    • createLinkString

      public static String createLinkString(Map<String,String> params)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates alipay url
      Parameters:
      params - parameters
      Returns:
      created alipay url
    • generatNameValuePairList

      protected static List<org.apache.http.NameValuePair> generatNameValuePairList(Map<String,String> properties)
      Deprecated, for removal: This API element is subject to removal in a future version.