An Open Source donation app for iOS making use of the Square card reader.
Open ViewController.swift
and edit the values:
private var donationValue: Int = 5
private var minimumDonationValue: Int = 5
private var maximumDonationValue: Int = 99
Don’t forget to register your app under your Square dev account: https://connect.squareup.com/apps
You’ll need your package name: com.company.opendonation
And the URL Scheme: opendonation
Full instructions: https://docs.connect.squareup.com/payments/pos/setup-ios
Your API_CLIENT_ID
is stored in Constant.swift
.
Rename Constant.example.swift
to Constant.swift
and add your ID:
static let API_CLIENT_ID = “your-id”
Idea by Ashleigh Hull.
Open Donation logo by simpvi.