Skip to content

Commit

Permalink
iOS: Release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Libin committed Jun 7, 2023
1 parent 4303762 commit d1817a2
Show file tree
Hide file tree
Showing 142 changed files with 357 additions and 158 deletions.
2 changes: 1 addition & 1 deletion Datatrans.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Datatrans"
spec.version = "3.0.0"
spec.version = "3.1.0"
spec.summary = "Datatrans iOS SDK - Accept payments on your iOS apps"
spec.description = <<-DESC
Accept payments on your iOS apps: Our mobile SDKs support your entire payment and
Expand Down
10 changes: 5 additions & 5 deletions Datatrans.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Datatrans.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Datatrans.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified Datatrans.xcframework/ios-arm64/Datatrans.framework/Datatrans
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// DTBasicAPMAppDelegateProxy.h
// Datatrans
//
// Created by Serhii Libin on 22.05.23.
//

#import <Foundation/Foundation.h>

typedef BOOL (^DTBasicAPMAppDelegateProxyHandler)(NSURL* url);

@interface DTBasicAPMAppDelegateProxy : NSObject<UIApplicationDelegate>

- (id)initWithViewController:(UIViewController *)viewController handler:(DTBasicAPMAppDelegateProxyHandler)handler ;
- (void)uninstallProxies;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ extern NSString* const DTPaymentMethodElo;
extern NSString* const DTPaymentMethodHipercard;
extern NSString* const DTPaymentMethodKlarna;
extern NSString* const DTPaymentMethodDankort;
extern NSString* const DTPaymentMethodSwish;
extern NSString* const DTPaymentMethodVipps;

// reka alternative identifiers
extern NSString* const DTPaymentMethodRekaRail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@

typedef enum {
DTPaymentMethodCreditCard = 1 << 0,
DTPaymentMethodNeedsCardExpiration = 1 << 1,
DTPaymentMethodNeedsCardVerification = 1 << 2,
DTPaymentMethodNeedsCardholder = 1 << 3,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodRequiresCustomScheme = 1 << 9,
DTPaymentMethodWebPayment = 1 << 1,
DTPaymentMethodWebPaymentExternal = 1 << 2,
DTPaymentMethodRequiresCustomScheme = 1 << 3,
} DTPaymentMethodFlags;

@interface DTPaymentMethodInfo : NSObject
Expand All @@ -28,9 +25,7 @@ typedef enum {
@property (nonatomic, readonly) BOOL isCreditCard;
@property (nonatomic, readonly) BOOL isWebPayment;
@property (nonatomic, readonly) BOOL isWebPaymentExternal;
@property (nonatomic, readonly) BOOL needsCardExpiration;
@property (nonatomic, readonly) BOOL needsCardVerification;
@property (nonatomic, readonly) BOOL needsCardholder;
@property (nonatomic, readonly) BOOL hasSavedPaymentMethodSupport;
@property (nonatomic, readonly) BOOL requiresCustomScheme;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
@property (nullable, nonatomic, copy) DTSwissPassPaymentInfo* swissPassPaymentInfo;
@property (nullable, nonatomic, copy) NSString* paysafecardMerchantClientId;
@property (nullable, nonatomic, strong) DTPaycardPaymentInfo* paycardPaymentInfo;
@property (nullable, nonatomic, strong) NSString* customerMobile;
@property (nullable, nonatomic, strong) NSString* vippsPaymentText;
@property (nonatomic, assign) BOOL isVippsAppInstalled;
@property (nullable, nonatomic, strong) NSString* appCallbackUrl;
@property (nonatomic, assign) BOOL isPayment;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
@property (nonatomic, copy) NSString* paymentMethodCategories; // Klarna only
@property (nonatomic, copy) NSString* token;
@property (nonatomic, copy) NSString* transactionId;
@property (nonatomic, copy) NSString* redirectUrl;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
DTPaymentMethodTypeKlarna = 25,
/// Dankort payment method
DTPaymentMethodTypeDankort = 26,
/// Swish payment method
DTPaymentMethodTypeSwish = 27,
/// Vipps payment method
DTPaymentMethodTypeVipps = 28,
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ FOUNDATION_EXPORT const unsigned char DatatransVersionString[];
#import <Datatrans/DTWebCallbackUrls.h>
#import <Datatrans/DTWebRequestFactory.h>
#import <Datatrans/DTWebProcess.h>
#import <Datatrans/DTBasicAPMAppDelegateProxy.h>
Binary file modified Datatrans.xcframework/ios-arm64/Datatrans.framework/Info.plist
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ import _Concurrency
case Hipercard
case Klarna
case Dankort
case Swish
case Vipps
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// DTBasicAPMAppDelegateProxy.h
// Datatrans
//
// Created by Serhii Libin on 22.05.23.
//

#import <Foundation/Foundation.h>

typedef BOOL (^DTBasicAPMAppDelegateProxyHandler)(NSURL* url);

@interface DTBasicAPMAppDelegateProxy : NSObject<UIApplicationDelegate>

- (id)initWithViewController:(UIViewController *)viewController handler:(DTBasicAPMAppDelegateProxyHandler)handler ;
- (void)uninstallProxies;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ extern NSString* const DTPaymentMethodElo;
extern NSString* const DTPaymentMethodHipercard;
extern NSString* const DTPaymentMethodKlarna;
extern NSString* const DTPaymentMethodDankort;
extern NSString* const DTPaymentMethodSwish;
extern NSString* const DTPaymentMethodVipps;

// reka alternative identifiers
extern NSString* const DTPaymentMethodRekaRail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@

typedef enum {
DTPaymentMethodCreditCard = 1 << 0,
DTPaymentMethodNeedsCardExpiration = 1 << 1,
DTPaymentMethodNeedsCardVerification = 1 << 2,
DTPaymentMethodNeedsCardholder = 1 << 3,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodRequiresCustomScheme = 1 << 9,
DTPaymentMethodWebPayment = 1 << 1,
DTPaymentMethodWebPaymentExternal = 1 << 2,
DTPaymentMethodRequiresCustomScheme = 1 << 3,
} DTPaymentMethodFlags;

@interface DTPaymentMethodInfo : NSObject
Expand All @@ -28,9 +25,7 @@ typedef enum {
@property (nonatomic, readonly) BOOL isCreditCard;
@property (nonatomic, readonly) BOOL isWebPayment;
@property (nonatomic, readonly) BOOL isWebPaymentExternal;
@property (nonatomic, readonly) BOOL needsCardExpiration;
@property (nonatomic, readonly) BOOL needsCardVerification;
@property (nonatomic, readonly) BOOL needsCardholder;
@property (nonatomic, readonly) BOOL hasSavedPaymentMethodSupport;
@property (nonatomic, readonly) BOOL requiresCustomScheme;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
@property (nullable, nonatomic, copy) DTSwissPassPaymentInfo* swissPassPaymentInfo;
@property (nullable, nonatomic, copy) NSString* paysafecardMerchantClientId;
@property (nullable, nonatomic, strong) DTPaycardPaymentInfo* paycardPaymentInfo;
@property (nullable, nonatomic, strong) NSString* customerMobile;
@property (nullable, nonatomic, strong) NSString* vippsPaymentText;
@property (nonatomic, assign) BOOL isVippsAppInstalled;
@property (nullable, nonatomic, strong) NSString* appCallbackUrl;
@property (nonatomic, assign) BOOL isPayment;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
@property (nonatomic, copy) NSString* paymentMethodCategories; // Klarna only
@property (nonatomic, copy) NSString* token;
@property (nonatomic, copy) NSString* transactionId;
@property (nonatomic, copy) NSString* redirectUrl;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
DTPaymentMethodTypeKlarna = 25,
/// Dankort payment method
DTPaymentMethodTypeDankort = 26,
/// Swish payment method
DTPaymentMethodTypeSwish = 27,
/// Vipps payment method
DTPaymentMethodTypeVipps = 28,
};


Expand Down Expand Up @@ -1934,6 +1938,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
DTPaymentMethodTypeKlarna = 25,
/// Dankort payment method
DTPaymentMethodTypeDankort = 26,
/// Swish payment method
DTPaymentMethodTypeSwish = 27,
/// Vipps payment method
DTPaymentMethodTypeVipps = 28,
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ FOUNDATION_EXPORT const unsigned char DatatransVersionString[];
#import <Datatrans/DTWebCallbackUrls.h>
#import <Datatrans/DTWebRequestFactory.h>
#import <Datatrans/DTWebProcess.h>
#import <Datatrans/DTBasicAPMAppDelegateProxy.h>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ import _Concurrency
case Hipercard
case Klarna
case Dankort
case Swish
case Vipps
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ import _Concurrency
case Hipercard
case Klarna
case Dankort
case Swish
case Vipps
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d1817a2

Please sign in to comment.