Skip to content

Commit

Permalink
Direct Tap 3.0.0 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
torresejay102 committed Feb 7, 2022
1 parent 36302cb commit 5ddd338
Show file tree
Hide file tree
Showing 89 changed files with 36,776 additions and 62 deletions.
14 changes: 7 additions & 7 deletions TestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
8E06A5C6256DEAFC009004DD /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8E06A5C4256DEAFC009004DD /* Main.storyboard */; };
8E06A5C8256DEAFC009004DD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E06A5C7256DEAFC009004DD /* Assets.xcassets */; };
8E06A5CB256DEAFC009004DD /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8E06A5C9256DEAFC009004DD /* LaunchScreen.storyboard */; };
8E9AD975274E5C4900816B89 /* DirectTap in Frameworks */ = {isa = PBXBuildFile; productRef = 8E9AD974274E5C4900816B89 /* DirectTap */; };
8EA7BA1A27B0EB0D0079BE3A /* DirectTap in Frameworks */ = {isa = PBXBuildFile; productRef = 8EA7BA1927B0EB0D0079BE3A /* DirectTap */; };
8EE1C1512583070C00FCB79C /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EE1C1502583070C00FCB79C /* Constants.swift */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -47,7 +47,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8E9AD975274E5C4900816B89 /* DirectTap in Frameworks */,
8EA7BA1A27B0EB0D0079BE3A /* DirectTap in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -111,7 +111,7 @@
);
name = TestApp;
packageProductDependencies = (
8E9AD974274E5C4900816B89 /* DirectTap */,
8EA7BA1927B0EB0D0079BE3A /* DirectTap */,
);
productName = TestApp;
productReference = 8E06A5BB256DEAFC009004DD /* TestApp.app */;
Expand Down Expand Up @@ -141,7 +141,7 @@
);
mainGroup = 8E06A5B2256DEAFB009004DD;
packageReferences = (
8E75BCFE274E50120033DE37 /* XCRemoteSwiftPackageReference "core-sdk-ios" */,
8EA7BA1827B0EB0D0079BE3A /* XCRemoteSwiftPackageReference "core-sdk-ios" */,
);
productRefGroup = 8E06A5BC256DEAFC009004DD /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -407,7 +407,7 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
8E75BCFE274E50120033DE37 /* XCRemoteSwiftPackageReference "core-sdk-ios" */ = {
8EA7BA1827B0EB0D0079BE3A /* XCRemoteSwiftPackageReference "core-sdk-ios" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/brankas/core-sdk-ios";
requirement = {
Expand All @@ -418,9 +418,9 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
8E9AD974274E5C4900816B89 /* DirectTap */ = {
8EA7BA1927B0EB0D0079BE3A /* DirectTap */ = {
isa = XCSwiftPackageProductDependency;
package = 8E75BCFE274E50120033DE37 /* XCRemoteSwiftPackageReference "core-sdk-ios" */;
package = 8EA7BA1827B0EB0D0079BE3A /* XCRemoteSwiftPackageReference "core-sdk-ios" */;
productName = DirectTap;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/brankas/core-sdk-ios",
"state": {
"branch": "master",
"revision": "0fc5745899e0ac3bb93c543844f60d50a50434f0",
"revision": "e4a51b4dbac9821132b4f3d7034752c125cc11db",
"version": null
}
}
Expand Down
23 changes: 10 additions & 13 deletions TestApp/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import UIKit
import DirectTapFramework

class ViewController: UIViewController, CoreDelegate, CheckDelegate {
class ViewController: UIViewController, CheckDelegate {
typealias T = String

override func viewDidLoad() {
Expand All @@ -34,7 +34,7 @@ class ViewController: UIViewController, CoreDelegate, CheckDelegate {
components.minute = 00
components.month = 12
components.day = 6
components.year = 2021
components.year = 2022

let date = Calendar.current.date(from: components)

Expand All @@ -44,25 +44,22 @@ class ViewController: UIViewController, CoreDelegate, CheckDelegate {
request.useRememberMe = true

do {
try DirectTapSF.shared.checkout(tapRequest: request, vc: self, delegate: self, showBackButton: false)
let retrieveTransactions = { (transaction: DirectTapFramework.Transaction?, error: String?) in
self.onResult(data: transaction, error: error)
}
try DirectTapSF.shared.checkout(tapRequest: request, vc: self, closure: retrieveTransactions, showBackButton: false)
} catch {
print("Error: \(error)")
}
}

func onResult(data: String?, error: String?, errorCode: String?) {
print("RESULT: \(data) \(error) \(errorCode)")
if let str = data {
print("TRANSACTION ID: \(str)")
func onResult(data: Transaction?, error: String?) {
if let transaction = data {
print("TRANSACTION ID: \(transaction.id)")
}

if let err = error {
if let errCode = errorCode {
print("Error Logs: \(err) \(errCode)")
}
else {
print("Error Logs: \(err)")
}
print("Error Logs: \(err)")
}
}

Expand Down
169 changes: 169 additions & 0 deletions api docs/Classes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Classes Reference</title>
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
<meta charset='utf-8'>
<script src="js/jquery.min.js" defer></script>
<script src="js/jazzy.js" defer></script>

<script src="js/lunr.min.js" defer></script>
<script src="js/typeahead.jquery.js" defer></script>
<script src="js/jazzy.search.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Section/Classes" class="dashAnchor"></a>
<a title="Classes Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="index.html"> Docs</a> (42% documented)</p>
<div class="header-right">
<form role="search" action="search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
</form>
</div>
</div>
</header>
<div class="content-wrapper">
<p id="breadcrumbs">
<a href="index.html"> Reference</a>
<img id="carat" src="img/carat.png" alt=""/>
Classes Reference
</p>
</div>
<div class="content-wrapper">
<nav class="sidebar">
<ul class="nav-groups">
<li class="nav-group-name">
<a href="Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Classes/DirectTapSF.html">DirectTapSF</a>
</li>
<li class="nav-group-task">
<a href="Classes/DirectTapSF/TapError.html">– TapError</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Enums.html">Enumerations</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Enums/BankCode.html">BankCode</a>
</li>
<li class="nav-group-task">
<a href="Enums/Country.html">Country</a>
</li>
<li class="nav-group-task">
<a href="Enums/Currency.html">Currency</a>
</li>
<li class="nav-group-task">
<a href="Enums/DirectErrorCode.html">DirectErrorCode</a>
</li>
<li class="nav-group-task">
<a href="Enums/Status.html">Status</a>
</li>
<li class="nav-group-task">
<a href="Enums/UniqueAmount.html">UniqueAmount</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Protocols/CheckDelegate.html">CheckDelegate</a>
</li>
<li class="nav-group-task">
<a href="Protocols/CoreDelegate.html">CoreDelegate</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Structs.html">Structures</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Structs/Account.html">Account</a>
</li>
<li class="nav-group-task">
<a href="Structs/Address.html">Address</a>
</li>
<li class="nav-group-task">
<a href="Structs/Amount.html">Amount</a>
</li>
<li class="nav-group-task">
<a href="Structs/Client.html">Client</a>
</li>
<li class="nav-group-task">
<a href="Structs/Customer.html">Customer</a>
</li>
<li class="nav-group-task">
<a href="Structs/DirectTapError.html">DirectTapError</a>
</li>
<li class="nav-group-task">
<a href="Structs/DirectTapRequest.html">DirectTapRequest</a>
</li>
<li class="nav-group-task">
<a href="Structs/DirectTapRequest/BrowserMode.html">– BrowserMode</a>
</li>
<li class="nav-group-task">
<a href="Structs/DismissAlert.html">DismissAlert</a>
</li>
<li class="nav-group-task">
<a href="Structs/Transaction.html">Transaction</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section>
<section class="section">
<h1>Classes</h1>
<p>The following classes are available globally.</p>

</section>
<section class="section task-group-section">
<div class="task-group">
<ul>
<li class="item">
<div>
<code>
<a name="/c:@M@DirectTapFramework@objc(cs)DirectTapSF"></a>
<a name="//apple_ref/swift/Class/DirectTapSF" class="dashAnchor"></a>
<a class="token" href="#/c:@M@DirectTapFramework@objc(cs)DirectTapSF">DirectTapSF</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>

<a href="Classes/DirectTapSF.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">DirectTapSF</span> <span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">SFSafariViewControllerDelegate</span><span class="p">,</span> <span class="kt">WebViewDelegate</span></code></pre>

</div>
</div>
</section>
</div>
</li>
</ul>
</div>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-02-07)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
</div>
</body>
</html>
Loading

0 comments on commit 5ddd338

Please sign in to comment.