Skip to content

Apple Pay App showing integration to Vantiv Integrated Payments

Notifications You must be signed in to change notification settings

Vantiv/applepay-demo-app-swift

Repository files navigation

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

About

Apple Pay App showing integration to Vantiv Integrated Payments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published