Common Lisp Package: CL-PAYPAL

README:

FUNCTION

Public

REQUEST (METHOD &REST ARGS &KEY &ALLOW-OTHER-KEYS)

Perform a request to the Paypal NVP API. METHOD is the method to use, additional keyword arguments are passed as parameters to the API. Returns

Undocumented

GET-AND-DO-EXPRESS-CHECKOUT (SUCCESS FAILURE)

INIT (PAYPAL-API-URL PAYPAL-USER PAYPAL-PASSWORD PAYPAL-SIGNATURE PAYPAL-RETURN-URL PAYPAL-CANCEL-URL &KEY (USERACTION continue) (CURRENCYCODE USD))

MAKE-EXPRESS-CHECKOUT-URL (AMOUNT IP &KEY (RETURN-URL *PAYPAL-RETURN-URL*) (CANCEL-URL *PAYPAL-CANCEL-URL*) (USERACTION *PAYPAL-USERACTION*) (CURRENCYCODE *PAYPAL-CURRENCYCODE*) (SANDBOX T) (HOSTNAME (IF SANDBOX www.sandbox.paypal.com www.paypal.com)))

Private

DECODE-RESPONSE (RESPONSE)

Decode a paypal response string, which is URL encoded and follow list encoding rules. Returns the parameters as a plist.

Undocumented

FIND-TRANSACTION (TOKEN &OPTIONAL (ERRORP T))

REGISTER-TRANSACTION (TOKEN AMOUNT CURRENCYCODE IP)

UNREGISTER-TRANSACTION (TOKEN)

GENERIC-FUNCTION

Private

Undocumented

RESPONSE-ERROR-RESPONSE (CONDITION)

SETFRESPONSE-ERROR-RESPONSE (NEW-VALUE CONDITION)

VARIABLE

Public

*PAYPAL-MAX-ACTIVE-TRANSACTIONS*

invoke garbage collection when it is reached.

*PAYPAL-MAX-TOKEN-LIVE-PERIOD*

the max value of live period for token in minute

*PAYPAL-MAX-TRANSACTION-PER-IP*

max number of simultaneous transaction per ip

Private

*PAYPAL-API-URL*

NVP URL of the Paypal server

*PAYPAL-CANCEL-URL*

cancel url if cancel paypal express checkout

*PAYPAL-CURRENCYCODE*

currency for paypal express checkout

*PAYPAL-PASSWORD*

Password to use to authenticate at the Paypal server

*PAYPAL-RETURN-URL*

return url for finishing paypal express checkout

*PAYPAL-SIGNATURE*

Signature to use to authenticate at the Paypal server

*PAYPAL-USER*

Username to use to authenticate at the Paypal server

*PAYPAL-USERACTION*

confirm order on your site or on Paypal, continue or commit, respectively

Undocumented

*ACTIVE-TRANSACTIONS*

*TRANSACTION-IPS*

CONDITION

Public

Undocumented

HTTP-REQUEST-ERROR

PAYPAL-ERROR

REQUEST-ERROR

RESPONSE-ERROR

TRANSACTION-ALREADY-CONFIRMED-ERROR