Skip to content

Instantly share code, notes, and snippets.

@johnpc
Last active August 29, 2015 14:05
Show Gist options
  • Save johnpc/c7d9c7731a556cd60f5f to your computer and use it in GitHub Desktop.
Save johnpc/c7d9c7731a556cd60f5f to your computer and use it in GitHub Desktop.
Working ordrin guest order request
require "ordrin"
my_secret_key = "PUT SECRET KEY HERE"
ordrin_api = Ordrin::APIs.new(my_secret_key, :test)
args = Hash.new
args["rid"] = '29900'
args["em"] = "john@johncorser.com"
args["tray"] = '25243987/1'
args["tip"] = "0.00"
args["first_name"] = "John"
args["last_name"] = "Corser"
args["phone"] = "9895987705"
args["zip"] = "48864"
args["addr"] = "5005 Campus Hill Drive"
args["addr2"] = "F303"
args["city"] = "Okemos"
args["state"] = "MI"
args["card_name"] = "John P Corser"
args["card_number"] = "4111111111111111"
args["card_cvc"] = "111"
args["card_expiry"] = "01/2018"
args["card_bill_addr"] = "426 S Division St"
args["card_bill_addr2"] = "#3"
args["card_bill_city"] = "Ann Arbor"
args["card_bill_state"] = "MI"
args["card_bill_zip"] = "48104"
args["card_bill_phone"] = "9895987705"
args["delivery_date"] = "ASAP"
ordrin_api.order_guest(args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment