Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- data Withdrawal = Withdrawal {
- _amount :: Money
- _receiverEmail :: Text
- data SerializeWithdrawal = SerializeWithdrawal Withdrawal Text
- request :: Client -> Withdrawal -> IO (Either AdaptiveError (ByteString, PayResponse))
- receiverEmail :: Lens' Withdrawal Text
- amount :: Lens' Withdrawal Money
Documentation
data Withdrawal Source
Withdrawal | |
|
data SerializeWithdrawal Source
For internal use.
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
.