Use this snippet to load it into your Pharo* image:
Gofer it smalltalkhubUser: 'Pharo' project: 'MetaRepoForPharo30'; package: 'ConfigurationOfMerchant'; load. (Smalltalk at: #ConfigurationOfMerchant) load
gateway := MERAprovaFacilGateway new merchantUsername: merchantUsername; beProduction; yourself.
Having the credit card and order objects allows you to do something like this:
gateway purchase: anOrder andStore: aCreditCard.
Which will make Merchant to actually not store credit cards on your servers but the token given by your gateway so you can later make a capture to take the money using:
gateway capture: anOrder token: aToken.
After that doIt, if authorised, you are 'anOrder value' richer*
Performing a doIt in a Smalltalk workspace never felt so good :)
*okay, minus costs
The rest is a couple of additional commands and protocol and handling errors elegantly
Have a happy business :D
...are welcomed, send that push request and hopefully we can review it together
Getting a fresh Pharo Smalltalk image and its virtual machine is as easy as running in your terminal:
wget -O- get.pharo.org/30+vm | bash
MIT - License
2014 - sebastian