Skip to content

Instantly share code, notes, and snippets.

View MisinformedDNA's full-sized avatar

Dan Friedman MisinformedDNA

View GitHub Profile
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb
require_relative '../base'
require 'braintree'
require 'yaml'
module Examples
module Checkout
class WalkthroughWithExistingCreditCbard
def self.run(client)
braintree_config_file = File.dirname(__FILE__) + "/braintree.yml"
unless File.exists?(braintree_config_file)
@MisinformedDNA
MisinformedDNA / Importer.rb
Last active August 29, 2015 14:04
Basic Spree Importer
require_relative '../base'
module Examples
module Orders
class Importing
def self.run(client)
# Add address information the order
address = {
firstname: 'Test',
@MisinformedDNA
MisinformedDNA / checkout.rb
Created August 5, 2014 19:46
Spree Checkout
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb
@MisinformedDNA
MisinformedDNA / existing_credit_card.rb
Created August 6, 2014 14:56
Existing Credit Card
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb
@MisinformedDNA
MisinformedDNA / return.rb
Last active August 29, 2015 14:04
Returns
require_relative '../base'
module Examples
module Orders
class Importing
def self.run(client)
# Add address information the order
address = {
firstname: 'Test',
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb
@MisinformedDNA
MisinformedDNA / init.ps1
Created April 19, 2015 20:50
Boxstarter
# Source control
cinst -y `
git `
tortoisegit `
poshgit
# Main developement tools
cinst -y visualstudio2013professional -InstallArguments "/Features:'WebTools SQL'"
cinst -y mssqlserver2014express
cinst -y mssqlservermanagementstudio2014express
@MisinformedDNA
MisinformedDNA / walkthrough-paypal.rb
Created June 22, 2015 14:13
Spree/PayPal API Test
require_relative '../base'
module Examples
module Checkout
class Walkthrough
def self.run(client)
# Create the order step by step:
# You may also choose to start it off with some line items
# See checkout/creating_with_line_items.rb