Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 1.41 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.41 KB

Please note that this example applies to the deprecated V1 moltin API only. For the most up to date iOS example, please go to https://github.com/moltin/ios-sdk/tree/v2/Example

Moltin Objective-C iOS Example app

An example app that thoroughly demonstrates how to use the Moltin iOS eCommerce SDK in Objective-C, along with Apple Pay.

Prefer Swift? Check out our Swift example app instead

Getting started

This demo app uses CocoaPods to manage dependencies.

  • Clone the project repository
  • Run pod install in the MoltinSDK iOS Example directory
  • Open the .xcworkspace file
  • You're all set.

Using Apple Pay

To use Apple Pay in the example app, you must have:

  • A Stripe account.
  • A Moltin store set up with the Stripe payment gateway enabled and associated with your Stripe account.
  • A paid Apple Developer account.

Once you have that sorted, you can follow these steps:

  • Change the app's bundle ID from com.moltin.Moltin to something unique.
  • Follow this guide to register your Merchant ID, create a certificate with Stripe and upload it to Apple.
  • Change the value of the StripePublishableKey constant in CartViewController.m to your Stripe account's publishable API key.

Then you're all set to use Apple Pay at the checkout in the demo app!