索引
- PersistentCategoryKeyValueContent
- ITreeContent
- ItemContent
- InstantaneousTreeContent
- ICodedTreeContent
- IKeyValueContent
- InstantaneousCodedTreeContent
- InstantaneousKeyValueContent
- IGlobalizationContent
- EntityUtil
- EntityStore
- ICategoryTreeContent
- ICategoryKeyValueContent
- ICodedCategoryTreeContent
- EntityJoin
- EntityCapsule
- CacheKeyValueContent
- CacheTreeContent
- ClassContent
- ProxySupport
- CacheCodedTreeContent
- Business
- ValidationSupport
- Validation
- IFinallyAspect
- Intercept
- InvokeContext
- IProxyLoader
- ProxyFactory
- IAspect
- IAroundAspect
- FinallyAspectSupport
- AroundAspectSupport
- AOPUnknownBreak
- AOPBreak
- AOPTransactionBreak
- GridView
- JSONOut
- Galleria
- package-frame
- package-summary
- package-tree
- package-use
- LoginSessionListener
- ApplicationContextListener
- TransactionFilter
- FileUploader.FileUploaderStatus
- FileUploader
- CharacterEncodingFilter
- ImageRedirectFilter
- FileUploader.FileUploaderListener
- PrintWriterDecorator
- IFormatter
- TokenPool
- HttpServletResponseDecorator
- HttpServletRequestDecorator
- ICryptography
- DynamicSecret
- CryptographySupport
- OrmTransactionContext
- OrmPersistenceFactory
- OrmPersistenceCollection
- CryptographyFactory
- OrmContexts
- OrmDatabaseTransaction
- OrmDefinitionContext
- OrmManipulationQueryContext
- OrmPersistence
- IOrmPersistence
- IOrmManipulationQuery
- IOrmTransaction
- Order
- OrmConstant
- IOrmDefinition
- DatabaseHelperSupport
- Entity
- FieldProperty
- Fields
- XMLFormatter
- SetList
- AggregateField
- Condition
- DatabaseHelper
- JSONFormatter
- ISetList
- MapList
- Names
- NameValue
- ServiceRouter
- StreamView
- TextView
- XMLView
- IMapList
- ServiceController
- RouterSupport
- Router
- RedirectView
- MVCRenderException
- MVCNotFoundException
- MVCInternalException
- JSPRouter
- JSPView
- Model
- MVCException
- MVCInstantiationException
- IModel
- IRouter
- IView
- JSONView
- JSPController
- ImageView
- IController
- HTMLView
- ForwardView
- Controller
- MailSender
- RandomGenerator
- ReflectionUtil
- ReservedWord
- QRCode
- LoggerSupport
- ChinesePinYin
- HttpExecuter
- IdCardValidator
- ImageValidateCode
- User32.RECT
- User32.SIZE
- KCLInformation
- IAppender
- Logger
- User32.POINT
- User32
- Identify
- FacadeDirectory
- FacadeIO
- TextReader
- TextWriter
- LocalizationLanguage
- Convert
- Comments
- WinFormInstallationBuilder
- WebFormInstallationBuilder
- PersistentTreeContent
- ServiceBusiness
- TreeContent
- CallingOnly
- CodeBuilder
- PersistentCategoryTreeContent
- PersistentCodedCategoryTreeContent
- PersistentCodedTreeContent
- PersistentGlobalizationContent
- PersistentKeyValueContent
- XMLDocumentEx
- WxOAuthAdapter
- WxPayAdapter
- WxSupport
- KCLConfig
- XMLDocument
- WxOAthAdapter
- WxAdapterSupport
- WxBasicAdapter
- WxMenuAdapter
- WxMessageDispatcher
- IWxReceivedListener
- TreeNode
- TreeLeaf
- Tree
- Train
- IWxEventListener
- ITreeNode
- MapQueue
- DateTime
- Forest
- ICache
- IMapQueue
- ThreadUnsafe
- UnimplementedException
- Untested
- ThreadSafe
- Cache
- MultiThreadUnitTest
- Debugger
- IUnitTest
- UnitTest
- Tested
- UploadView
- TreeView
- Paging
- StringHelper
- RichText
- Video
- Music
- ListView
- Label
- KCLTag
com.knots.kcl.wechat
Class WxPayAdapter
java.lang.Object com.knots.kcl.wechat.WxPayAdapter
public class WxPayAdapter
- extends java.lang.Object
Constructor Summary | |
---|---|
WxPayAdapter() |
Method Summary | |
---|---|
static java.lang.String | getPaySign(java.lang.String appId, java.lang.String nonceStr, java.lang.String prepayId, long timeStamp, java.lang.String partnerApiKey) |
static java.lang.String | getPrepayId(java.lang.String appId, java.lang.String body, java.lang.String partnerId, java.lang.String nonceStr, java.lang.String paybackUrl, java.lang.String openId, java.lang.String orderId, java.lang.String clientIP, java.lang.String price, java.lang.String partnerApiKey) |
static java.lang.String | signPayParameters(MapList<java.lang.String,java.lang.Object> parameters, java.lang.String partnerApiKey) |
static boolean | verifyPaySign(java.lang.String xml, java.lang.String partnerApiKey) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
WxPayAdapter
public WxPayAdapter()
Method Detail |
---|
signPayParameters
public static java.lang.String signPayParameters(MapList<java.lang.String,java.lang.Object> parameters, java.lang.String partnerApiKey) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
verifyPaySign
public static boolean verifyPaySign(java.lang.String xml, java.lang.String partnerApiKey) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getPrepayId
public static java.lang.String getPrepayId(java.lang.String appId, java.lang.String body, java.lang.String partnerId, java.lang.String nonceStr, java.lang.String paybackUrl, java.lang.String openId, java.lang.String orderId, java.lang.String clientIP, java.lang.String price, java.lang.String partnerApiKey) throws java.io.IOException
- Returns:
- If function is successed, the prepayId will returned. If the function is failed, the string 'FAIL: error' replaced.
- Throws:
java.io.IOException
getPaySign
public static java.lang.String getPaySign(java.lang.String appId, java.lang.String nonceStr, java.lang.String prepayId, long timeStamp, java.lang.String partnerApiKey) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException