The paypal-adaptive-hoops package

[Tags:deprecated, library, mit, program, test]

[Skip to Readme]


Versions,,,,,,,,,,,,,, (info)
Dependencies aeson (>=0.8 && <0.10), base (>=4.6 && <4.9), bytestring (==0.10.*), errors (>=1.4 && <3.0), http-client (>=0.4.2 && <0.5), lens (>=4.6 && <5.0), lens-aeson (==1.0.*), paypal-adaptive-hoops, text (>=1.1 && <1.3), time (>=1.4 && <1.6), transformers (==0.4.*), vector (>=0.10.12 && <0.11), wreq (>=0.3 && <0.5) [details]
License MIT
Author Ian Grant Jeffries
Category Web
Home page
Source repository head: git clone git://
Uploaded Fri Dec 11 19:26:06 UTC 2015 by fanjam
Distributions NixOS:
Downloads 1648 total (3 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-12-11 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for paypal-adaptive-hoops

Readme for paypal-adaptive-hoops-


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