-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,494 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+28.6 KB
...pm/xcode/package.xcworkspace/xcuserdata/eugene.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
.swiftpm/xcode/xcuserdata/eugene.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>CardIO.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>CardIOSDK.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>CardIO</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
<key>CardIOSDK</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+23.2 KB
...codeproj/project.xcworkspace/xcuserdata/eugene.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
CardIOSDK.xcodeproj/xcuserdata/eugene.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>CardIOSDK.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:5.3 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "CardIOSDK", | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "CardIOSDK", | ||
targets: ["CardIO"]), | ||
], | ||
dependencies: [ | ||
|
||
], | ||
targets: [ | ||
.binaryTarget(name: "CardIO", path: "./Sources/CardIOSDK/CardIO.xcframework") | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_armv7</string> | ||
<key>LibraryPath</key> | ||
<string>CardIO.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>armv7</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_i386_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>CardIO.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>i386</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+28.2 MB
Sources/CardIOSDK/CardIO.xcframework/ios-arm64_armv7/CardIO.framework/CardIO
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
Sources/CardIOSDK/CardIO.xcframework/ios-arm64_armv7/CardIO.framework/Headers/CardIO.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// CardIO.h | ||
// See the file "LICENSE.md" for the full license governing this code. | ||
// | ||
|
||
// All-in-one header file for card.io sdk. | ||
#import "CardIOCreditCardInfo.h" | ||
#import "CardIODetectionMode.h" | ||
#import "CardIOView.h" | ||
#import "CardIOViewDelegate.h" | ||
#import "CardIOPaymentViewController.h" | ||
#import "CardIOPaymentViewControllerDelegate.h" | ||
#import "CardIOUtilities.h" | ||
|
83 changes: 83 additions & 0 deletions
83
...dIOSDK/CardIO.xcframework/ios-arm64_armv7/CardIO.framework/Headers/CardIOCreditCardInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// | ||
// CardIOCreditCardInfo.h | ||
// See the file "LICENSE.md" for the full license governing this code. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
/// CardIOCreditCardType Identifies type of card. | ||
typedef NS_ENUM(NSInteger, CardIOCreditCardType) { | ||
/// The card number does not correspond to any recognizable card type. | ||
CardIOCreditCardTypeUnrecognized = 0, | ||
/// The card number corresponds to multiple card types (e.g., when only a few digits have been entered). | ||
CardIOCreditCardTypeAmbiguous = 1, | ||
/// American Express | ||
CardIOCreditCardTypeAmex = '3', | ||
/// Japan Credit Bureau | ||
CardIOCreditCardTypeJCB = 'J', | ||
/// VISA | ||
CardIOCreditCardTypeVisa = '4', | ||
/// MasterCard | ||
CardIOCreditCardTypeMastercard = '5', | ||
/// Discover Card | ||
CardIOCreditCardTypeDiscover = '6' | ||
}; | ||
|
||
|
||
/// Container for the information about a card. | ||
@interface CardIOCreditCardInfo : NSObject<NSCopying> | ||
|
||
/// Card number. | ||
@property(nonatomic, copy, readwrite) NSString *cardNumber; | ||
|
||
/// Card number with all but the last four digits obfuscated. | ||
@property(nonatomic, copy, readonly) NSString *redactedCardNumber; | ||
|
||
/// January == 1 | ||
/// @note expiryMonth & expiryYear may be 0, if expiry information was not requested. | ||
@property(nonatomic, assign, readwrite) NSUInteger expiryMonth; | ||
|
||
/// The full four digit year. | ||
/// @note expiryMonth & expiryYear may be 0, if expiry information was not requested. | ||
@property(nonatomic, assign, readwrite) NSUInteger expiryYear; | ||
|
||
/// Security code (aka CSC, CVV, CVV2, etc.) | ||
/// @note May be nil, if security code was not requested. | ||
@property(nonatomic, copy, readwrite) NSString *cvv; | ||
|
||
/// Postal code. Format is country dependent. | ||
/// @note May be nil, if postal code information was not requested. | ||
@property(nonatomic, copy, readwrite) NSString *postalCode; | ||
|
||
/// Cardholder Name. | ||
/// @note May be nil, if cardholder name was not requested. | ||
@property(nonatomic, copy, readwrite) NSString *cardholderName; | ||
|
||
/// Was the card number scanned (as opposed to entered manually)? | ||
@property(nonatomic, assign, readwrite) BOOL scanned; | ||
|
||
/// The rectified card image; usually 428x270. | ||
@property(nonatomic, strong, readwrite) UIImage *cardImage; | ||
|
||
/// Derived from cardNumber. | ||
/// @note CardIOCreditInfo objects returned by either of the delegate methods | ||
/// userDidProvideCreditCardInfo:inPaymentViewController: | ||
/// or cardIOView:didScanCard: | ||
/// will never return a cardType of CardIOCreditCardTypeAmbiguous. | ||
@property(nonatomic, assign, readonly) CardIOCreditCardType cardType; | ||
|
||
/// Convenience method which returns a card type string suitable for display (e.g. "Visa", "American Express", "JCB", "MasterCard", or "Discover"). | ||
/// Where appropriate, this string will be translated into the language specified. | ||
/// @param cardType The card type. | ||
/// @param languageOrLocale See CardIOPaymentViewController.h for a detailed explanation of languageOrLocale. | ||
/// @return Card type string suitable for display. | ||
+ (NSString *)displayStringForCardType:(CardIOCreditCardType)cardType usingLanguageOrLocale:(NSString *)languageOrLocale; | ||
|
||
/// Returns a 36x25 credit card logo, at a resolution appropriate for the device. | ||
/// @param cardType The card type. | ||
/// @return 36x25 credit card logo. | ||
+ (UIImage *)logoForCardType:(CardIOCreditCardType)cardType; | ||
|
||
@end | ||
|
17 changes: 17 additions & 0 deletions
17
...rdIOSDK/CardIO.xcframework/ios-arm64_armv7/CardIO.framework/Headers/CardIODetectionMode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// CardIODetectionMode.h | ||
// See the file "LICENSE.md" for the full license governing this code. | ||
// | ||
// | ||
|
||
#ifndef icc_CardIODetectionMode_h | ||
#define icc_CardIODetectionMode_h | ||
|
||
typedef NS_ENUM(NSInteger, CardIODetectionMode) { | ||
CardIODetectionModeCardImageAndNumber = 0, | ||
CardIODetectionModeCardImageOnly, | ||
CardIODetectionModeAutomatic | ||
}; | ||
|
||
#endif | ||
|
Oops, something went wrong.