Skip to content

Instantly share code, notes, and snippets.

View MisinformedDNA's full-sized avatar

Dan Friedman MisinformedDNA

View GitHub Profile
@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 / 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 / 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',
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)
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