Skip to content

typeable/connexpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Links

Credit card sales API: https://docs.connexpay.com/reference/credit-card-sales

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published