Class DefaultAlipayService
java.lang.Object
de.hybris.platform.chinesepspalipayservices.alipay.impl.DefaultAlipayService
- All Implemented Interfaces:
AlipayService
Default implementation of
AlipayService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates signaturegenerateUrl(Map<String, String> sParaTemp, AlipayConfiguration alipayConfig) Generates alipay urlprotected List<org.apache.http.NameValuePair>generatNameValuePairList(Map<String, String> properties) protected String[]paraFilter(Map<String, String> sArray) Filters signature parameterspostRequest(Map<String, String> sParaTemp, AlipayConfiguration alipayConfig) Simulates the http post request, uses this method to generate the XML response from alipayvoidsetUnAllowedParams(String[] unAllowedParams) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.chinesepspalipayservices.alipay.AlipayService
createLinkString, encrypt
-
Constructor Details
-
DefaultAlipayService
public DefaultAlipayService()
-
-
Method Details
-
generateUrl
Description copied from interface:AlipayServiceGenerates alipay url- Specified by:
generateUrlin interfaceAlipayService- Parameters:
sParaTemp- parameters for generating urlalipayConfig- alipay configuration- Returns:
- alipay url
-
postRequest
Description copied from interface:AlipayServiceSimulates the http post request, uses this method to generate the XML response from alipay- Specified by:
postRequestin interfaceAlipayService- Parameters:
sParaTemp- request parametersalipayConfig- alipay configuration- Returns:
- XML response from alipay
-
buildMysign
Description copied from interface:AlipayServiceCreates signature- Specified by:
buildMysignin interfaceAlipayService- Parameters:
sArray- the request parameterskey- private keysignType- signature type- Returns:
- signature
-
paraFilter
Description copied from interface:AlipayServiceFilters signature parameters- Specified by:
paraFilterin interfaceAlipayService- Parameters:
sArray- the request parameters- Returns:
- filtered parameters
-
buildRequestPara
-
generatNameValuePairList
-
getUnAllowedParams
-
setUnAllowedParams
-