pdebruic / Stripe
Project infos
| License | MIT |
| Tags | credit cards, api |
| Creation date | 2013-07-16 |
| Website | www.stripe.com |
Monticello registration
About Stripe
Use Stripe as a payment gateway for processing credit cards.
Requires a Stripe account.
You need to set your keys as described in StripeObject>>#README
Be aware that if you store credit card info on your server (in the USA) you must comply with PCI-DSS standards or face huge fines.
The included example Seaside component can create and store a StripeCustomer object. The StripeCustomer object stores the credit card info with Stripe. That keeps you from having to store the credit card info on your servers thereby avoiding the PCI-DSS compliance headaches.
API Documentation:
This Smalltalk library should let you do everything thats described here in the stripe docs. But I've not added convenience methods for everything yet. As of December 10 2013 I've begun versioning the Metacello configuration to match their API.
Loading into Pharo/GemStone
tested in Pharo and GemStone
Metacello new
baseline:'Stripe';
repository: 'http://smalltalkhub.com/mc/pdebruic/Stripe/main';
load:#('Tests' 'Seaside-Example')
Loading into Squeak
tested in Squeak 4.4
" load Metacello into your image"
Installer squeaksource
project: 'MetacelloRepository';
addPackage: 'ConfigurationOfMetacello';
install.
(Smalltalk at: #ConfigurationOfMetacello) load.
" then load Stripe by following the instructions for Pharo/GemStone"
SSL Notes
The SqueakSSL plugin should work in Pharo and Squeak. If it does not make sure the plugin is provided by your VM or download a copy of it from https://github.com/itsmeront/squeakssll. The plugin goes next to your VM. If that doesn't fix it I'd consider using the "Faking an https client for GLASS" instructions linked below and just use nginx to terminate your SSL connections
For GemStone, I think there isn't an SSL library yet so you'll need to follow the instructions here: Faking an https client for GLASS
