Skip to content
This repository has been archived by the owner. It is now read-only.
An Objective-C demo app using the Moltin iOS SDK.
Branch: master
Clone or download
matthew1809 Merge pull request #2 from moltin/fix/v1-message
add a warning notice and point to V2 example
Latest commit 1b1acee Aug 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MoltinSDK iOS Example Updated Podfile for CocoaPods v1.0 Jul 7, 2016
.gitignore .gitignore Aug 24, 2015
LICENSE Initial commit Aug 24, 2015
README.md move notice to very top of readme Aug 30, 2017

README.md

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!

You can’t perform that action at this time.