This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!upstart | |
description "Snapter Upstart" | |
author "Ariel Fuggini" | |
env APP_NAME='snapter' | |
env PORT='3000' | |
#env METEOR_SETTINGS="$(cat /vagrant/snapter/config/production/settings.json)" | |
env ROOT_URL="http://snapter.co" | |
env NODE_BIN='/usr/local/bin/node' | |
env MONGO_URL="mongodb://localhost:27017/meteor" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openUrl: function(url, options) { | |
var html = HTTP.call("GET", url, options, function(e,r) { | |
return r; | |
}); | |
return html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StripeCheckout.open({ | |
key: "xxx", | |
amount: t, | |
name: "My Site", | |
description: r, | |
panelLabel: "Pay Now", | |
shippingAddress: !0, | |
token: function (e, o) { | |
alert("purchase made!") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'click .buy': function(event) { | |
event.preventDefault(); | |
console.log(this._id); | |
} |
NewerOlder