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

Safe HaskellNone
LanguageHaskell2010

PayPal.Adaptive.Withdrawal

Contents

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

req :: Client -> Withdrawal -> IO (Either AdaptiveErr CompletePayResp) Source

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

Lenses