StudioFortnight / braintree-swift-nodejs

An iOS/Swift - NodeJS demo app showing how to use BrainTree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Braintree drop-in UI in Swift (Client) and NodeJS (Server)

This is a sample project that shows how to implement BrainTree drop-in UI in a Swift iOS app (Client) using NodeJS (Server).

Braintree drop-in UI in Swift (Client) and NodeJS (Server)

Prerequisites

  • NodeJS
  • Cocoapods

Project setup (Server)

Install dependecies

Navigate inside your server folder and run:

$ npm install

Start your project

$ npm start

Create .env variables

  • Navigate to BrainTree to fetch your API credentials
  • Navigate to your server folder
  • Create a .env file in the root of your server directory and add your credentials
MERCHANTID = #MERCHANTID key#
PUBLICKEY = #PUBLICKEY key#
PRIVATEKEY = #PRIVATEKEY key#

Project setup (Client)

Install dependecies

Navigate to client -> BraintreeSwiftNodejs and run:

$ pod install

Open BraintreeSwiftNodejs.xcworkspace

License

This project is licensed under the MIT License - see the LICENSE file for details

About

An iOS/Swift - NodeJS demo app showing how to use BrainTree

License:MIT License


Languages

Language:Swift 65.0%Language:JavaScript 29.1%Language:Ruby 5.9%