not really known
Go to file
2024-04-06 22:54:15 +00:00
connexpay Move connexpay to subdir 2024-04-06 22:54:15 +00:00
README.org Docs. 2024-03-24 21:36:07 +00:00
stack.yaml Bump 2024-03-21 23:19:54 +00:00

Connexpay API client for Haskell

What

ConnexPay is a credit card payment processing provider.

How to use this library

Here is a short example:

let logf msg = Text.putStrLn ("Connexpay log: " <> msg)
    cc = CreditCard ...
    amount = Money @USD 5.00
    vendor = Just "Best vendor out there"
httpmgr <- tlsManager
pay <- initConnexpay logf httpmgr deviceGuid cpHost True login password

runConnexpay pay $ do
  sale <- authorisePayment cc amount vendor
  capturePayment sale.paymentGuid

For more information, see Haddock docs.

NOTE: 'PaymentError' type isn't used yet, but it will after more testing. Connexpay test environment doesn't seem to report errors adequately.