paypal-api-0.2: PayPal API, currently supporting "ButtonManager"

Safe HaskellSafe-Infered

Network.PayPal.NVP

Contents

Synopsis

High-level interface

data Service Source

A PayPal service.

sandbox :: ServiceSource

PayPal sandbox.

live :: ServiceSource

PayPal live system.

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.