You are looking at historical revision 28205 of this page. It may differ significantly from its current revision.

Striped Zebra

Description

An API for processing payments via Stripe.

Author

Thomas Hintz

Contact me at t@thintz.com.

Requirements

List of user configurable parameters

api-endpoint

[parameter] (api-endpoint [string])

URL under which the api resides. Defaults to "https://api.stripe.com/". You shouldn't need to change this.

api-version

[parameter] (api-version [string])

URL to the api version of Stripe that you want to use. Defaults to "/v1/".

default-username

[parameter] (default-username [string])

This is your Stripe private api key. Defaults to "".

High-level procedures

charge

[procedure] (charge amount #!key (card-token #f) (customer #f) (username (default-username)) (description ""))

Charge a users card. As per Stripe's api, either card-token or customer are required. For more details see the Stripe charge documentation.

add-customer

[procedure] (add-customer card-token #!key (description #f) (email #f) (plan "") (username (default-username)) (description ""))

Add a customer to Stripe for further use. card-token is a token returned by Stripe's javascript api and is the card that will be associated with the customer's account. For more details see the Stripe customer documentation.