Safe Haskell | None |
---|---|
Language | Haskell2010 |
- ppPost :: ToJSON a => Client -> Text -> a -> IO (Either AdaptiveErr (Response ByteString))
- ppDecode :: Response ByteString -> Either AdaptiveErr PayResp
- parseErrId :: Value -> Parser Int
- requestEnvelope :: Value
- payExecStatusCompleted :: PayResp -> Either AdaptiveErr ()
- getPayInfo :: PayResp -> Either AdaptiveErr PayInfo
- transactionStatusCompleted :: PayResp -> PayInfo -> Either AdaptiveErr ()
- errorFieldNothing :: PayResp -> Either AdaptiveErr ()
- checkPayKey :: PayResp -> Either AdaptiveErr ()
- payExecStatusCreated :: PayResp -> Either AdaptiveErr ()
- noPayInfo :: PayResp -> Either AdaptiveErr ()
- transactionIdJust :: PayResp -> Maybe TransactionId -> Either AdaptiveErr TransactionId
Documentation
ppPost :: ToJSON a => Client -> Text -> a -> IO (Either AdaptiveErr (Response ByteString)) Source
parseErrId :: Value -> Parser Int Source
Exported by PayPal.Adaptive.Internal
requestEnvelope :: Value Source
"en_US" is hardcoded because it's the only supported error language.
payExecStatusCompleted :: PayResp -> Either AdaptiveErr () Source
getPayInfo :: PayResp -> Either AdaptiveErr PayInfo Source
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
errorFieldNothing :: PayResp -> Either AdaptiveErr () Source
checkPayKey :: PayResp -> Either AdaptiveErr () Source
payExecStatusCreated :: PayResp -> Either AdaptiveErr () Source
noPayInfo :: PayResp -> Either AdaptiveErr () Source