Skip to content

Commit

Permalink
support colombia example
Browse files Browse the repository at this point in the history
  • Loading branch information
carloshe-perez committed Jul 1, 2021
1 parent 5e6ff8c commit 43a1632
Show file tree
Hide file tree
Showing 68 changed files with 69 additions and 1,072 deletions.
12 changes: 6 additions & 6 deletions OpenpayExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
2D20F46925BB9CFE00269CD9 /* OpenpayExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D20F46825BB9CFE00269CD9 /* OpenpayExampleUITests.swift */; };
2D20F47D25BBAADB00269CD9 /* DetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D20F47C25BBAADB00269CD9 /* DetailViewController.swift */; };
2D20F4EF25BE94E200269CD9 /* CustomFormViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D20F4EE25BE94E200269CD9 /* CustomFormViewController.swift */; };
2D3042CC268E2EFE00CF1AB7 /* OpenpayKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D3042CA268E2EF600CF1AB7 /* OpenpayKit.xcframework */; };
2D3042CD268E2EFE00CF1AB7 /* OpenpayKit.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 2D3042CA268E2EF600CF1AB7 /* OpenpayKit.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2D4BE42D25BF9129007D2E63 /* CardTokenComplete.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4BE42C25BF9129007D2E63 /* CardTokenComplete.swift */; };
2D4BE43125BF93B4007D2E63 /* ResultViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4BE43025BF93B4007D2E63 /* ResultViewController.swift */; };
2DB384C02669310000930DFE /* OpenpayKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DB384BE266930FC00930DFE /* OpenpayKit.xcframework */; };
2DB384C12669310000930DFE /* OpenpayKit.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 2DB384BE266930FC00930DFE /* OpenpayKit.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -47,7 +47,7 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
2DB384C12669310000930DFE /* OpenpayKit.xcframework in Embed Frameworks */,
2D3042CD268E2EFE00CF1AB7 /* OpenpayKit.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -72,17 +72,17 @@
2D20F47C25BBAADB00269CD9 /* DetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailViewController.swift; sourceTree = "<group>"; };
2D20F4B525BE87F100269CD9 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
2D20F4EE25BE94E200269CD9 /* CustomFormViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomFormViewController.swift; sourceTree = "<group>"; };
2D3042CA268E2EF600CF1AB7 /* OpenpayKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = OpenpayKit.xcframework; sourceTree = "<group>"; };
2D4BE42C25BF9129007D2E63 /* CardTokenComplete.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardTokenComplete.swift; sourceTree = "<group>"; };
2D4BE43025BF93B4007D2E63 /* ResultViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultViewController.swift; sourceTree = "<group>"; };
2DB384BE266930FC00930DFE /* OpenpayKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = OpenpayKit.xcframework; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
2D20F44025BB9CFC00269CD9 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2DB384C02669310000930DFE /* OpenpayKit.xcframework in Frameworks */,
2D3042CC268E2EFE00CF1AB7 /* OpenpayKit.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -129,9 +129,9 @@
children = (
2D20F44625BB9CFC00269CD9 /* AppDelegate.swift */,
2D20F44825BB9CFC00269CD9 /* SceneDelegate.swift */,
2DB384BE266930FC00930DFE /* OpenpayKit.xcframework */,
2D20F44A25BB9CFC00269CD9 /* RootViewController.swift */,
2D20F44C25BB9CFC00269CD9 /* Main.storyboard */,
2D3042CA268E2EF600CF1AB7 /* OpenpayKit.xcframework */,
2D20F44F25BB9CFE00269CD9 /* Assets.xcassets */,
2D20F45125BB9CFE00269CD9 /* LaunchScreen.storyboard */,
2D20F45425BB9CFE00269CD9 /* Info.plist */,
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions OpenpayExample/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import OpenpayKit
class DetailViewController: UIViewController,CardTokenComplete {

var openpay: Openpay!
static let MERCHANT_ID = "mi93pk0cjumoraf08tqt" // Generated in Openpay account registration
static let API_KEY = "pk_92e31f7c77424179b7cd451d21fbb771" // Generated in Openpay account registration
static let MERCHANT_ID = "mwf7x79goz7afkdbuyqd" // Generated in Openpay account registration
static let API_KEY = "pk_575c5a2837d94433a57cf1590bf849b0" // Generated in Openpay account registration

var sessionID: String!
var tokenID: String!
Expand All @@ -23,7 +23,7 @@ class DetailViewController: UIViewController,CardTokenComplete {
super.viewDidLoad()

// Init library
openpay = Openpay(withMerchantId: DetailViewController.MERCHANT_ID, andApiKey: DetailViewController.API_KEY, isProductionMode: false, isDebug: true)
openpay = Openpay(withMerchantId: DetailViewController.MERCHANT_ID, andApiKey: DetailViewController.API_KEY, isProductionMode: false, isDebug: true,countryCode: "CO")

// Get session id
openpay.createDeviceSessionId(successFunction: successSessionID, failureFunction: failSessionID)
Expand Down
Binary file removed OpenpayExample/OpenpayKit.xcframework/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef OPENPAYKIT_SWIFT_H
#define OPENPAYKIT_SWIFT_H
#pragma clang diagnostic push
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name OpenpayKit
import Foundation
import Swift
Expand Down Expand Up @@ -29,8 +29,7 @@ public struct Address : Swift.Codable {
public init(from decoder: Swift.Decoder) throws
}
public class Openpay {
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool = false, countryCode: Swift.String = "MX")
public func createTokenWithCard(address: OpenpayKit.OPAddress!, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func getTokenWithId(tokenId: Swift.String, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func createDeviceSessionId(successFunction: @escaping (Swift.String) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name OpenpayKit
import Foundation
import Swift
Expand Down Expand Up @@ -29,8 +29,7 @@ public struct Address : Swift.Codable {
public init(from decoder: Swift.Decoder) throws
}
public class Openpay {
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool = false, countryCode: Swift.String = "MX")
public func createTokenWithCard(address: OpenpayKit.OPAddress!, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func getTokenWithId(tokenId: Swift.String, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func createDeviceSessionId(successFunction: @escaping (Swift.String) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef OPENPAYKIT_SWIFT_H
#define OPENPAYKIT_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -224,7 +224,7 @@ SWIFT_CLASS("_TtC10OpenpayKit8CardView")
#endif

#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef OPENPAYKIT_SWIFT_H
#define OPENPAYKIT_SWIFT_H
#pragma clang diagnostic push
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name OpenpayKit
import Foundation
import Swift
Expand Down Expand Up @@ -29,8 +29,7 @@ public struct Address : Swift.Codable {
public init(from decoder: Swift.Decoder) throws
}
public class Openpay {
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool)
public init(withMerchantId merchantId: Swift.String, andApiKey apiKey: Swift.String, isProductionMode: Swift.Bool, isDebug: Swift.Bool = false, countryCode: Swift.String = "MX")
public func createTokenWithCard(address: OpenpayKit.OPAddress!, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func getTokenWithId(tokenId: Swift.String, successFunction: @escaping (OpenpayKit.OPToken) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
public func createDeviceSessionId(successFunction: @escaping (Swift.String) -> Swift.Void, failureFunction: @escaping (Foundation.NSError) -> Swift.Void)
Expand Down

This file was deleted.

Loading

0 comments on commit 43a1632

Please sign in to comment.