Skip to content

Latest commit

 

History

History
75 lines (40 loc) · 1.89 KB

README.md

File metadata and controls

75 lines (40 loc) · 1.89 KB

applepay-demo-app-swift

Apple Pay iOS App demonstrating how to integrate to Vantiv Integrated Payments

Prerequisites

Setup

  • Set up Apple Pay in developer account

  • Create merchant id/app id

  • Install Xcode - Currently using 8.1

Simulating the Merchant Server

Following are needed for locally simulating a merchant server for the app to communicate with.

Execute commands from the Terminal.

Install Brew

If it asks you to install XCode CommandLine Tools, say yes.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Ruby

brew install ruby

Install Sinatra

gem install sinatra

Update settings.yml

Update auth with Base64 encoded credentials provided by Vantiv Integrated Payments

Run the Sinatra REST site

ruby merchant_server.rb

NOTE: Use control+c to quit the web server

Before running App in Xcode

  • Update Settings.plist with values for

    • merchantServerAddress - this will be the external ip address of the machine running the merchant_server.rb script
    • paypageId - provided by Vantiv Integrated Payments

Run App in Xcode

Additional Documentation

Apple Pay Development Information

Getting Started with MercuryPay

Ecommerce Apple Pay