Skip to content

Instantly share code, notes, and snippets.

View JonathanGTH's full-sized avatar

Johanan Gonzalez JonathanGTH

View GitHub Profile
@JonathanGTH
JonathanGTH / simplecart_parser.clj
Created June 24, 2016 20:55 — forked from sventech/simplecart_parser.clj
Clojure parser for SimpleCart(js) form POST/GET
(ns webstore.simplecart_parser
(:require [clojure.string :as string]))
;; see github.com/sventech/simplecart-js for tax calculation improvement fork
(def input-params
{"item_quantity_1" "1",
"itemCount" "2",
"item_price_1" "9.99",
"store_name" "Online Store",
"item_name_1" "Awesome Product - MP3",