The paypal-adaptive-hoops package

[ Tags: deprecated, library, mit, program, web ] [ Propose Tags ]
Deprecated.

[Skip to Readme]

Properties

Versions 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.*), 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
Maintainer ian@housejeffries.com
Category Web
Home page https://github.com/fanjam/paypal-adaptive-hoops
Source repository head: git clone git://github.com/fanjam/paypal-adaptive-hoops.git
Uploaded Fri Dec 11 19:26:06 UTC 2015 by fanjam
Distributions NixOS:0.13.1.0
Executables example
Downloads 1701 total (15 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-12-11 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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