Class AlipayUtil
java.lang.Object
de.hybris.platform.chinesepspalipayservices.alipay.AlipayUtil
Deprecated, for removal: This API element is subject to removal in a future version.
Deals with alipay common methods
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated, for removal: This API element is subject to removal in a future version.Creates signatureDeprecated, for removal: This API element is subject to removal in a future version.static StringcreateLinkString(Map<String, String> params) Deprecated, for removal: This API element is subject to removal in a future version.Creates alipay urlstatic StringcreateLinkStringWithEncoding(Map<String, String> params) Deprecated, for removal: This API element is subject to removal in a future version.Encodes alipay link urlstatic StringDeprecated, for removal: This API element is subject to removal in a future version.Encrypted by signature typestatic StringgenerateUrl(Map<String, String> sParaTemp, AlipayConfiguration alipayConfig) Deprecated, for removal: This API element is subject to removal in a future version.Generates alipay urlprotected 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.paraFilter(Map<String, String> sArray) Deprecated, for removal: This API element is subject to removal in a future version.Filters signature parametersstatic StringpostRequest(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
-
Method Details
-
generateUrl
public static String generateUrl(Map<String, String> sParaTemp, AlipayConfiguration alipayConfig) throws UnsupportedEncodingExceptionDeprecated, for removal: This API element is subject to removal in a future version.Generates alipay url- Parameters:
sParaTemp- parameters for generating urlalipayConfig- alipay configuration- Returns:
- alipay url
- Throws:
UnsupportedEncodingException- throw UnsupportedEncodingException when parameters contain unsupported encoding chars
-
postRequest
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 parametersalipayConfig- alipay configuration- Returns:
- XML response from alipay
-
paraFilter
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
Deprecated, for removal: This API element is subject to removal in a future version.Creates signature- Parameters:
sArray- the request parameterskey- private keysignType- 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
Deprecated, for removal: This API element is subject to removal in a future version.Encrypted by signature type- Parameters:
signType- signature typepreStr- original string- Returns:
- encrypted string
-
createLinkStringWithEncoding
public static String createLinkStringWithEncoding(Map<String, String> params) throws UnsupportedEncodingExceptionDeprecated, 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
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.
-
AlipayServicereplace