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

Safe HaskellNone
LanguageHaskell2010

PayPal.Adaptive.Withdrawal

Description

Send a single payment from your account.

Pay operation docs: https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/

This is a "Simple Payment" which means there's a single sender and receiver (same as Deposit).

It uses the Implicit payment approval type, meaning the application making the API call must also be the sender of the payment.

Synopsis

Documentation

request :: Client -> Withdrawal -> IO (Either AdaptiveError (ByteString, PayResponse)) Source

If a PayPal account doesn't exist yet PayPal responds with an empty list of PayInfos. We return this as Left AePending.