Safe Haskell | Safe-Infered |
---|
- data Service
- sandbox :: Service
- live :: Service
- submit :: (Failure HttpException m, MonadIO m, PayPalRequest req) => Service -> Credentials -> req -> m (Either (Response ByteString) (Status (PayPalResponse req)))
- prepareRequest :: (Monad m, PayPalRequest req) => Service -> Credentials -> req -> Request m
- processResponse :: (PayPalRequest req, MonadIO m) => req -> Response ByteString -> m (Either (Response ByteString) (Status (PayPalResponse req)))
High-level interface
submit :: (Failure HttpException m, MonadIO m, PayPalRequest req) => Service -> Credentials -> req -> m (Either (Response ByteString) (Status (PayPalResponse req)))Source
Submit a request to PayPal.
Low-level interface
prepareRequest :: (Monad m, PayPalRequest req) => Service -> Credentials -> req -> Request mSource
Construct an HTTP request for the specified PayPal request.
processResponse :: (PayPalRequest req, MonadIO m) => req -> Response ByteString -> m (Either (Response ByteString) (Status (PayPalResponse req)))Source