-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from payu-intrepos/develop/iOS12Update
iOS12 update
- Loading branch information
Showing
126 changed files
with
668 additions
and
14 deletions.
There are no files selected for viewing
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 not shown.
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
89 changes: 89 additions & 0 deletions
89
CoreSDK/PayUMoneyCoreSDK.framework/Headers/UIImageView+CitrusGraphics.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,89 @@ | ||
// | ||
// UIImageView+CitrusGraphics.h | ||
// CitrusGraphics | ||
// | ||
// Created by Rajvinder Singh on 11/9/17. | ||
// Copyright © 2017 CitrusPay. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface CitrusGraphics: NSObject | ||
|
||
+ (void)clearCache; | ||
|
||
+ (void)imagePrefetcherForCard; | ||
|
||
+ (void)imagePrefetcherForBank; | ||
|
||
@end | ||
|
||
@interface UIImageView (CitrusGraphics) | ||
|
||
/** Adds activity indicator on UIImageVIew (Indicator will only be shown on UIImageView when image is getting loaded). | ||
*/ | ||
- (void)setSystemActivity; | ||
|
||
/** Load an image with a resource. | ||
@param cardScheme cardScheme, whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusCardWithCardScheme:(NSString * _Nonnull)cardScheme; | ||
|
||
/** Load an image with a large resource. | ||
@param cardScheme cardScheme, whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusLargeCardWithCardScheme:(NSString * _Nonnull)cardScheme; | ||
|
||
/** Load an image with a resource. | ||
@param bankCID bankCID of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusBankWithBankCID:(NSString * _Nonnull)bankCID; | ||
|
||
/** Load an image with a large resource. | ||
@param bankCID bankCID of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusLargeBankWithBankCID:(NSString * _Nonnull)bankCID; | ||
|
||
/** Load an image with a resource. | ||
@param bankCode bank code of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusBankWithBankCode:(NSString * _Nonnull)bankCode; | ||
|
||
/** Load an image with a large resource. | ||
@param bankCode bank code of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusLargeBankWithBankCode:(NSString * _Nonnull)bankCode; | ||
|
||
/** Load an image with a resource. | ||
@param bankCode bank code of the wallet whose image is to be loaded | ||
*/ | ||
- (void)loadWalletWithBankCode:(NSString * _Nonnull)bankCode; | ||
|
||
/** Load an image with a large resource. | ||
@param bankCode bank code of the wallet whose image is to be loaded | ||
*/ | ||
- (void)loadLargeWalletWithBankCode:(NSString * _Nonnull)bankCode; | ||
|
||
/** Load an image with a resource. | ||
@param IFSCCode IFSCCode of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusBankWithIFSCCode:(NSString * _Nonnull)IFSCCode; | ||
|
||
/** Load an image with a large resource. | ||
@param IFSCCode IFSCCode of the bank whose image is to be loaded | ||
*/ | ||
- (void)loadCitrusLargeBankWithIFSCCode:(NSString * _Nonnull)IFSCCode; | ||
|
||
/** Prefetch an image with a Citrus Branding resource. | ||
@param brandingID id of the brand to be loaded | ||
*/ | ||
- (void)loadCitrusBrandingWithBrandingID:(NSString * _Nonnull)brandingID; | ||
|
||
/** Prefetch an image with a Citrus LazyPay resource. | ||
@param assetID id of the asset to be loaded | ||
*/ | ||
- (void)loadCitrusLazyPayWithAssetID:(NSString * _Nonnull)assetID; | ||
|
||
@end | ||
|
Binary file not shown.
Binary file modified
BIN
-6 Bytes
(100%)
CoreSDK/PayUMoneyCoreSDK.framework/PUCBAllPaymentOption.nib
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 modified
BIN
+2 Bytes
(100%)
CoreSDK/PayUMoneyCoreSDK.framework/PUCBPassowrdWithIncorrectOTPView.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
CoreSDK/PayUMoneyCoreSDK.framework/PUCBRegenerateOTPView.nib
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.
44 changes: 44 additions & 0 deletions
44
Dependencies/CB/PayUCustomBrowser.framework/Headers/CBConnection.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,44 @@ | ||
// | ||
// CBConnection.h | ||
// PayUTestApp | ||
// | ||
// Created by Umang Arya on 20/07/15. | ||
// Copyright (c) 2015 PayU, India. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "PUCBBaseConnection.h" | ||
/*! | ||
* This class is used provide CB functionality to the merchant. | ||
*/ | ||
@interface CBConnection : PUCBBaseConnection | ||
|
||
#pragma mark - UIWebView delegate | ||
|
||
/*! | ||
* This method must be called from UIWebView delegate method from Merchant's App. | ||
* @param webView instance of webView received in parameter of [UIWebView webView:shouldStartLoadWithRequest:navigationType:] | ||
* @param request request received in parameter of [UIWebView webView:shouldStartLoadWithRequest:navigationType:] | ||
*/ | ||
- (void)payUwebView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request; | ||
|
||
/*! | ||
* This method must be called from UIWebView delegate method from Merchant's App. | ||
* @param webView instance of webView received in parameter of [UIWebView webViewDidStartLoad:] | ||
*/ | ||
- (void)payUwebViewDidStartLoad:(UIWebView *)webView; | ||
|
||
/*! | ||
* This method must be called from UIWebView delegate method from Merchant's App. | ||
* @param webView instance of webView received in parameter of [UIWebView webView:didFailLoadWithError:] | ||
* @param error error returned by delegate method of UIWebView [UIWebView webView:didFailLoadWithError:] | ||
*/ | ||
- (void)payUwebView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; | ||
|
||
/*! | ||
* This method must be called from UIWebView delegate method from Merchant's App. | ||
* @param webView instance of webView received in parameter of UIWebView's delegate method [UIWebView webViewDidFinishLoad:] | ||
*/ | ||
- (void)payUwebViewDidFinishLoad:(UIWebView *)webView; | ||
|
||
@end |
30 changes: 30 additions & 0 deletions
30
Dependencies/CB/PayUCustomBrowser.framework/Headers/CBConstant.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,30 @@ | ||
// | ||
// CBConstant.h | ||
// iOSCustomeBrowser | ||
// | ||
// Created by Suryakant Sharma on 15/04/15. | ||
// Copyright (c) 2015 PayU, India. All rights reserved. | ||
// | ||
|
||
#ifndef iOSCustomeBrowser_CBConstant_h | ||
#define iOSCustomeBrowser_CBConstant_h | ||
|
||
|
||
|
||
typedef NS_OPTIONS(NSUInteger, PUCBBankSimulator) { | ||
PUCBDefault = 0, | ||
PUCBBankSimulatorLocal = 1, | ||
PUCBBankSimulatorRemote = 2, | ||
}; | ||
|
||
//Macros To prevent instantiation of class by standard methods | ||
#define ATTRIBUTE_ALLOC __attribute__((unavailable("alloc not available, call sharedSingletonInstance instead"))) | ||
#define ATTRIBUTE_INIT __attribute__((unavailable("init not available, call sharedSingletonInstance instead"))) | ||
#define ATTRIBUTE_NEW __attribute__((unavailable("new not available, call sharedSingletonInstance instead"))) | ||
#define ATTRIBUTE_COPY __attribute__((unavailable("copy not available, call sharedSingletonInstance instead"))) | ||
|
||
//Constants for web didFailLoad params | ||
#define FAIL_URL_STRING @"failUrlString" | ||
#define FAIL_ERROR @"failError" | ||
|
||
#endif |
76 changes: 76 additions & 0 deletions
76
Dependencies/CB/PayUCustomBrowser.framework/Headers/CBWKConnection.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,76 @@ | ||
// | ||
// CBWKConnection.h | ||
// PayU_iOS_SDK_TestApp | ||
// | ||
// Created by Sharad Goyal on 25/09/15. | ||
// Copyright (c) 2015 PayU, India. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <WebKit/WebKit.h> | ||
#import "PUCBBaseConnection.h" | ||
|
||
/*! | ||
* This class is used provide CB functionality to the merchant. | ||
*/ | ||
@interface CBWKConnection : PUCBBaseConnection | ||
|
||
@property (nonatomic, copy) NSString *postData; | ||
@property (nonatomic, copy) NSString *urlString; | ||
@property (nonatomic, weak) UIViewController *vcToPresentAlert; | ||
@property BOOL didMakePostRequest; | ||
|
||
#pragma mark - WKWebView scriptMessageHandler Delegate | ||
|
||
- (void)payUuserContentController:(WKUserContentController *)userContentController | ||
didReceiveScriptMessage:(WKScriptMessage *)message; | ||
|
||
#pragma mark - WKWebView Navigation Delegate | ||
|
||
// Tracking Load Progress | ||
|
||
- (void)payUwebView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation; | ||
|
||
- (void)payUwebView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error; | ||
|
||
- (void)payUwebView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error; | ||
|
||
-(void)payUwebView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation; | ||
|
||
- (void)payUwebView:(WKWebView *)webView | ||
didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge | ||
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, | ||
NSURLCredential *credential))completionHandler; | ||
|
||
- (void)payUwebView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:(WKNavigation *)navigation; | ||
|
||
- (void)payUwebView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation; | ||
|
||
- (void)payUwebViewWebContentProcessDidTerminate:(WKWebView *)webView; | ||
|
||
// Decide Load Policy Delegates | ||
|
||
- (void)payUwebView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler; | ||
|
||
- (void)payUwebView:(WKWebView *)webView | ||
decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse | ||
decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler; | ||
|
||
#pragma mark - WKWebView UI Delegate | ||
|
||
// Creating a webView | ||
|
||
- (WKWebView *)payUwebView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures; | ||
|
||
// Displaying UI Panels | ||
|
||
- (void)payUwebView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)())completionHandler; | ||
|
||
- (void)payUwebView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(BOOL result))completionHandler; | ||
|
||
- (void)payUwebView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString *result))completionHandler; | ||
|
||
// Closing a webView | ||
- (void)payUwebViewDidClose:(WKWebView *)webView; | ||
|
||
@end |
56 changes: 56 additions & 0 deletions
56
Dependencies/CB/PayUCustomBrowser.framework/Headers/PUCBBaseConnection.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,56 @@ | ||
// | ||
// PUCBBaseConnection.h | ||
// PayUNonSeamlessTestApp | ||
// | ||
// Created by Sharad Goyal on 09/06/16. | ||
// Copyright © 2016 PayU. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
#import "PayUCBWebViewResponseDelegate.h" | ||
#import "CBConstant.h" | ||
#import "PUCBConfiguration.h" | ||
|
||
@interface PUCBBaseConnection : NSObject | ||
|
||
/*! | ||
* calling init on this class is not allowed | ||
*/ | ||
- (instancetype) init ATTRIBUTE_INIT; | ||
- (instancetype) new ATTRIBUTE_NEW; | ||
|
||
@property (nonatomic, assign) BOOL isMagicRetry; | ||
@property (nonatomic, copy) NSString *txnID; | ||
@property (nonatomic, copy) NSString *merchantKey; | ||
@property (weak, nonatomic) id <PayUCBWebViewResponseDelegate> cbWebViewResponseDelegate; | ||
@property (nonatomic, assign) BOOL isAutoOTPSelect; | ||
@property (nonatomic, assign) PUCBBankSimulator bankSimulatorType; | ||
@property (nonatomic, strong) PUCBConfiguration *cbConfig; | ||
|
||
/*! | ||
* This method is called from Merchant's App to initialize CB. | ||
* @param view UIView on which WebView needs to be displayed | ||
* @param webView instance of WebView (It can be either WKWebView or UIWebView) | ||
* @return obj instance of PUCBBaseConnection (or instance of its subclass, depending upon class on which it is called) | ||
*/ | ||
-(instancetype)init:(UIView *)view webView:(id)webView; | ||
|
||
/*! | ||
* This method initializes the required properties of CBConnection and setUp the CB to run. | ||
*/ | ||
- (void)initialSetup; | ||
|
||
/*! | ||
* This method is used to show the payUActivityIndicator. | ||
*/ | ||
- (void)payUActivityIndicator; | ||
|
||
/* | ||
* These methods helps in minimizing / maximizing CB screen on WebView | ||
*/ | ||
|
||
- (void)minimizeCB; | ||
- (void)maximizeCB; | ||
|
||
@end |
Oops, something went wrong.