46
IoT Commerce

IoT Commerce using Ruby, PHP and Arduino

Embed Size (px)

Citation preview

Presentation Title

IoT Commerce

1

Steven CooperPayPal/Braintree Developer Advocate@DeveloperSteve

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Millions of people around the world use PayPal for one simple reason: its simple.

/\$\d+/

@DeveloperSteve#IoTCommerce

MD5, SHA-1, 2, 33

$485,000Payments processed by PayPal each minute.

Accept payments faster with integrations in as little as 12 lines of codeBy vaulting credit cards you allow users to transact securely and easily

Through the v.zero SDK companies such as Uber, airbnb and Github are able to accept PayPal and Credit Card seamlessly

Braintree Live DemoIm giving it all Ive got captainV.Zero Ruby demo using Sinatra

This is a really basic example of the Braintree Dropin JS Client Library in Sinatra to make a Credit Card or PayPal payment

Github.com/developersteve/vzero-ruby-demo

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

1969 ARPANETA revolution begins "We set up a telephone connection between us and the guys at SRI ...", Leonard Kleinrock said in an interview: "We typed the L and we asked on the phone, "Do you see the L?" "Yes, we see the L," came the response. We typed the O, and we asked, "Do you see the O." "Yes, we see the O." Then we typed the G, and the system crashed ... Yet a revolution had begun"

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Digital Universe

Device fragmentation 9

Limitationwe cant touch our vast digital universe900+ Million2014 Total number of Websites3 Billion2014 Total number of Users

Source: internetlivestats.com

Mobile makes the internet portableAugmented reality gives us a world we can see but cant touch

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Virtual Reality makes the internet immersiveFooling the brain is one thing but the body knows better

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

WELCOMETO THE INTERNET OF THINGS

13

14The three most dangerous things in the world are a programmer with a soldering iron, a hardware engineer with a software patch, and a user with an idea.The Wizardry Compiled - Rick Cook

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

14

The NixieA wearable drone created for an Intel IoT wearables hackathon

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

No fly zones

Creating Tomorrows Mobile Payment Experiences: 25 countries with live PayPal fingerprint authentication on Samsung devices.

16

Brad the ToasterCreated to demonstrate IoT will be all around us

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Internet of Things tableEven something as simple as a table can become more useful

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

50 Billion IoT devices on this planetthere will be By 2020Source Cisco

40.2% Business ManufacturingBy 2020 there will be 26 smart objects for every person on Earth

Opportunities in every industrySource Intel30.3% Health Care8.3% Retail7.7% Security4.1% Transport

20

21Apps like Uber change the whole workflow and it changes the way we think about these things. You empower workers, and they can have more flexibility.- Tim OReilly

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Our mission has been clear from the start. In 1999 our founder Peter Thiel proclaimed that PayPal was going to revolutionize payments to give people more power.

21

IoT AppsMore OpportunitiesUber isnt what most people would think of as an IoT company and that is the problem.

The alternative cab company represents the kind of systematic change that interests him, a change that doesnt just focus on sticking a sensor in a gadget.

Source: http://venturebeat.com/2015/03/04/tim-oreilly-silicon-valley-is-massively-underestimating-the-impact-of-iot-interview/

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

In the Internet of Things No one will know you are a FRIDGE

IoT Commerce

24

Candy DispenserAlberto Lopez (@AlbertusLM)IoT project, using a common Candy dispenser machine, a Spark core (www.spark.io) and Braintree v.zero SDK

Github.com/albertuslm/CandyMachine

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

BrasilinoJeff Prestes (@jeffprestes)Using a Raspberry Pi the project uses a Java client to receive commands via Socket from Mobile Remote control and Android controller that will commands the car and receive streaming from Car's camera.

The name means a mix between Brasilia (very popular old brazilian car) and Arduino.

Github.com/jeffprestes/brasilino

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

IoT Receipt PrinterSteven Cooper (@developersteve)Using an Arduino Yun to power a thermal receipt printer that retrieves new orders from the Braintree Braintree Transaction SDK call, orders are stored in the custom order variable which needs to be setup via the sandbox and can be populated with JSON order data at time of order.

Github.com/developersteve/IoTCart

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

IoT Receipt PrinterEnables merchants to automatically print when a new order is received on a website

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

29The WebsitePHP CronC++ SketchBraintree Transaction SearchProject OverviewReceipt PrinterThe HardwareHTML/JSRuby / PHPBraintree Client TokenBraintree Transaction

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

The Website

Step 1 - The V.ZeroPowered by Ruby using Sinatra31Generate a token for the dropin UIAdd the token to the Javascript

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Step 2 - The TransactionPowered by Ruby using Sinatra32Ajax Submit the Payment_Method_NonceTransacting the Payment Method_Nonce

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Custom FieldsPowered by Ruby using Sinatra33Braintree Sandbox -> Settings -> ProcessingTransaction stores the custom field if populated

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Step 3 - ProfitPowered by Ruby using Sinatra34

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

The Hardware

Arduno yunA microcontroller board based on the ATmega32u4 (datasheet) and the Atheros AR9331

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

LINUXSQLITE BRIDGEARDUINOCode on the Yun A PHP Cron checks Braintree for new transactions not already listed in the bridge referenced by the transaction id, stores transaction json in a file using the transaction id as the filename

Stores transactions with transaction id as the primary key and a printed indicator Checks the SQLITE bridge to see if theres any new transactions, if found opens a matching transaction id file prints and marks as done

37

The demo

Possibilities of Future Tech

39

WearablesIts still early days and smart watches are only the beginning

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

E-TextilesIoT Clothing creates a whole new industry

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Nightrider2015 BattleHack Melbourne WinnerBe more visible while you ride. Let cars know when you are turning and slowing down. Get the best route, decide if you want the faster route or safer route.

Materials used .

2 ADAFruit Floras1 Sparkcore2 Accelerometers 3 meters of wiring LED strip lights 2 Lipo Batteries

Nightrider.org

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

ThinkablesPeripherals to a whole new level

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Internet of Car ThingsIoT is really going places

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

PossibilitiesWhere we are going we dont need roads

2015 PayPal Inc. All rights reserved. Confidential and proprietary.

Thank you Questions?Steven Cooper (@DeveloperSteve)

2015 PayPal Inc. All rights reserved. Confidential and proprietary.