- data Service
- sandbox :: Service
- live :: Service
- submit :: (Failure HttpException m, MonadIO m, PayPalRequest req) => Service -> Credentials -> req -> m (Either Response (Status (PayPalResponse req)))
- prepareRequest :: (Monad m, PayPalRequest req) => Service -> Credentials -> req -> Request m
- processResponse :: (PayPalRequest req, Monad m) => req -> Status -> ResponseHeaders -> Iteratee ByteString m (Either Response (Status (PayPalResponse req)))
High-level interface
submit :: (Failure HttpException m, MonadIO m, PayPalRequest req) => Service -> Credentials -> req -> m (Either Response (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, Monad m) => req -> Status -> ResponseHeaders -> Iteratee ByteString m (Either Response (Status (PayPalResponse req)))Source