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

[ deprecated, library, mit, program, web ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.5.0.0, 0.5.1.0, 0.5.2.0, 0.5.3.0, 0.6.0.0, 0.7.0.0, 0.8.0.0, 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.0.2, 0.11.0.0, 0.11.0.1, 0.11.0.2, 0.13.1.0 (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
Maintainer ian@housejeffries.com
Category Web
Home page https://github.com/fanjam/paypal-adaptive-hoops
Source repo head: git clone git://github.com/fanjam/paypal-adaptive-hoops.git
Uploaded by fanjam at 2015-12-11T19:26:06Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example
Downloads 6928 total (30 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-0.13.1.0

[back to package description]

Intro

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