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

[ deprecated, library, mit, program, web ] [ Propose Tags ]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,, (info)
Dependencies aeson (>=0.8 && <0.10), base (>=4.6 && <4.9), bytestring (>=0.10 && <0.11), errors (>=1.4 && <3.0), http-client (>=0.4.2 && <0.5), lens (>=4.6 && <5.0), lens-aeson (>=1.0 && <1.1), paypal-adaptive-hoops, text (>=1.1 && <1.3), time (>=1.4 && <1.6), transformers (>=0.4 && <0.5), vector (>=0.10.12 && <0.11), wreq (>=0.3 && <0.5) [details]
License MIT
Author Ian Grant Jeffries
Category Web
Home page
Source repo head: git clone git://
Uploaded by fanjam at 2015-12-11T19:26:06Z
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example
Downloads 6837 total (46 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-12-11 [all 1 reports]

Readme for paypal-adaptive-hoops-

[back to package description]


A Haskell client for a limited part of PayPal's Adaptive Payments API.

Covers only sending, receiving, and looking up payments. Only supports handling a single payment per request, and doesn't cover sending payments that involve more than two parties.

PayPal has other APIs like the PayPal REST API, but the PayPal REST API doesn't support sending payments.

PayPal Credentials

Getting production approval for the Adaptive Payments API takes some time. You should start the process well before you actually need to go into production. Detailed instructions for doing so are out of the scope of this project, but you can get started here.

Future Plans

Only supports USD. More currencies would be a nice-to-have.

Local Tests

cabal test local

Integration Tests

Requires an internet connection, a PayPal sandbox app account, and a PayPal sandbox test user account. The test accounts should have balances between a few dollars and a million dollars (they send pennies around, but expect million dollar transaction attempts to fail from lack of funds).

  1. cp sandbox-template.json sandbox.json

  2. Fill out sandbox.json with your credentials.

  3. cabal test remote