paypal-adaptive-hoops-0.10.0.2: Client for a limited part of PayPal's Adaptive Payments API

Safe HaskellNone
LanguageHaskell2010

Web.PayPal.Adaptive.Internal

Synopsis

Documentation

ppPost :: ToJSON a => Client -> Text -> a -> IO (Either AdaptiveErr (Response ByteString)) Source

Exported by Web.PayPal.Adaptive.Internal

ppDecode :: FromJSON a => Response ByteString -> Either AdaptiveErr a Source

Exported by Web.PayPal.Adaptive.Internal

parseErrId :: Value -> Parser Int Source

Exported by Web.PayPal.Adaptive.Internal

requestEnvelope :: Value Source

Exported by Web.PayPal.Adaptive.Internal

"en_US" is hardcoded because it's the only supported error language.

payExecStatusCompleted :: PayResp -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

getPayInfo :: PayResp -> Either AdaptiveErr PayInfo Source

Exported by Web.PayPal.Adaptive.Internal

TODO: this makes the assumption that an empty PayInfo list means the transaction is pending. Is this always right?

transactionStatusCompleted :: PayResp -> PayInfo -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

errorFieldNothing :: PayResp -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

checkPayKey :: PayResp -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

payExecStatusCreated :: PayResp -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

noPayInfo :: PayResp -> Either AdaptiveErr () Source

Exported by Web.PayPal.Adaptive.Internal

data SerializeDeposit Source

Exported by Web.PayPal.Adaptive.Internal

data SerializeWithdrawal Source

Exported by Web.PayPal.Adaptive.Internal