Copyright | (C) 2016 Braden Walters |
---|---|
License | MIT (see LICENSE file) |
Maintainer | Braden Walters <vc@braden-walters.info> |
Stability | experimental |
Portability | ghc |
Safe Haskell | None |
Language | Haskell2010 |
- type PayPalCredentials = (EnvironmentUrl, ClientID, Secret)
- data YesodPayPalState
- mkYesodPayPalState :: PayPalCredentials -> IO (Maybe YesodPayPalState)
- class Yesod site => YesodPayPal site where
- yesodExecPayPal :: (YesodPayPal site, FromJSON a) => PayPalOperations a -> HandlerT site IO (Either PayPalError a)
Documentation
type PayPalCredentials = (EnvironmentUrl, ClientID, Secret) Source #
All credentials needed to log into PayPal's API.
data YesodPayPalState Source #
State needed over multiple PayPal requests.
mkYesodPayPalState :: PayPalCredentials -> IO (Maybe YesodPayPalState) Source #
Create a PayPal state for a site.
class Yesod site => YesodPayPal site where Source #
Typeclass for Yesod sites which use PayPal.
yesodPayPalCredentials :: site -> PayPalCredentials Source #
The PayPal API credentials for a site.
yesodPayPalState :: site -> YesodPayPalState Source #
State needed over multiple PayPal requests for a site.
yesodExecPayPal :: (YesodPayPal site, FromJSON a) => PayPalOperations a -> HandlerT site IO (Either PayPalError a) Source #
Execute PayPal operations in the context of Yesod.