Skip to content

StudioFortnight/braintree-swift-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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