Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.39 KB

README.md

File metadata and controls

50 lines (39 loc) · 1.39 KB

Stripy

A simple app showing how to use SwiftUI and Stripe API to accept payments

Information
Platform iOS License MIT

Key Features

  • SwiftUI + Combine + MVVM
  • Stripe API
  • Glitch

Screenshot

App Screenshot

Getting Started

Prerequisites

  1. Xcode 12.2 or later
  2. Stripe API keys
  3. Host a checkout endpoint in Glitch or your own server.

Installation

  1. Clone or download the project to your local machine
  2. Open and replace <YOUR ENDPOINT BASE URL> with your own endpoint in Endpoint+Stripe.swift
extension Endpoint {
    struct Stripe: EndpointProtocol {
        ...
        components.host = "<YOUR ENDPOINT BASE URL>" // Example: odd-faithful-parsnip.glitch.me
        ...
    }
  1. Run the simulator

Notes

Apple Pay needs additional setup per this tutorial

Licence

Stripy is released under the MIT license. See LICENSE for details.