paypal-rest-client-0.1.0: A client to connect to PayPal's REST API (v1)

Copyright(C) 2016 Braden Walters
LicenseMIT (see LICENSE file)
MaintainerBraden Walters <vc@braden-walters.info>
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Network.Payments.PayPal.Payments

Description

 

Synopsis

Documentation

createPayment :: CreateRequest -> PayPalOperations CreateResponse Source #

Creates a new payment using payment data.

approvalUrlFromCreate :: CreateResponse -> Maybe URL Source #

Extracts an approval URL, if there is one, from a create response

executePayment :: PaymentID -> ExecuteRequest -> PayPalOperations ExecuteResponse Source #

Execute (or complete) a payment that has been approved by the payer.

listPayments :: Maybe PagingRequest -> PayPalOperations ListResponse Source #

Lists payments, possibly with paging.

returnLinkParams :: Map ByteString ByteString -> Maybe ReturnLinkParams Source #

Use this function to parse GET parameters passed from PayPal to the return URL. Takes a map of query parameters (name to value) and returns a structure containing these parameters if possible. Otherwise PayPal didn't give you required data.