Safe Haskell | None |
---|---|
Language | Haskell2010 |
Start the process of someone paying you. You have to redirect the payer's browser to PayPal to finish it.
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 Withdrawal).
It uses the Explicit payment approval type, meaning the payer must go to PayPal in their browser to approve the payment. Here's an example payment approval URL with a PayKey of "foo":
https://www.paypal.com/cgi-bin/webscr?cmd=_ap-payment&paykey=foo
- data Deposit = Deposit {
- _amount :: Money
- _senderEmail :: Text
- _returnUrl :: Text
- _cancelUrl :: Text
- data SerializeDeposit = SerializeDeposit Deposit Text
- req :: Client -> Deposit -> IO (Either AdaptiveErr PayKey)
- approvalUrl :: Client -> PayKey -> Text
- senderEmail :: Lens' Deposit Text
- returnUrl :: Lens' Deposit Text
- cancelUrl :: Lens' Deposit Text
- amount :: Lens' Deposit Money
Documentation
Deposit | |
|
approvalUrl :: Client -> PayKey -> Text Source