Bryan - I neglected to insert the AppDelegate for POSSDKTest2 … here is the first part of it which will show a console log if the callback happens:
//
// AppDelegate.swift
// POSSDKTest2
//
// Created by Dr Craig E Curphey on 2022-06-14.
//
//======= Square variables ======
var squareTokenID = “Who cares - let it fail I just want a callback!” //for Welcome
//set this to “” after i get square working
var squarePatientID = “”
var squareGeneratedTransID = “”
var squareGeneratedClientID = “”
var squareAmountReturned :Float = 0.00
var squareCurrencyType = “”
var squareCashOrCard = “”
var squareCardBrand = “”
var squareLast4 = “”
var squareTransFailed = false
var squareTransFailureReason = “”
var squareUserCancelled = false
var squareTransDone = false
var TodaysFee: Float = 0.00
import UIKit
import SquarePointOfSaleSDK
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var testing = true
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
{
print ("AppDel Got to AppDelegate - woo-hoooo - callback happened!") //proves that we got call back
guard SCCAPIResponse.isSquareResponse(url) else {
// if let error = response.error {
print("AppDel Callback failure")
return false
}
// remaining code only gets executed on successful callback from Square app
print ("AppDel Successful-1 Square recognized!")