Skip to content

Commit

Permalink
PnP sdk updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RajvinderPayU committed Jun 1, 2018
1 parent eec4490 commit aef7329
Show file tree
Hide file tree
Showing 30 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions PayUmoney_PnP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
Pod::Spec.new do |s|

s.name = "PayUmoney_PnP"
s.version = "2.3"
s.version = "2.3.1"
s.summary = "Native iOS integration & easy to integrate and use library."
s.description = "Provides a ready to use, drop in set of User Screens to enable payments with iOS Apps. Provide an end to end payment experience with all the features offered by the Citrus SDK. Reduces integration friction as merchants do not have to worry about designing the checkout screen, bank assets, or deal with complexity required to handle different payments methods."

s.homepage = "https://github.com/payu-intrepos/PayUMoney-IOS-SDK"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Umang Arya" => "[email protected]" }
s.source = { :git => "https://github.com/payu-intrepos/PayUMoney-IOS-SDK.git", :tag => "PayUmoney_PnP.2.3" }
s.source = { :git => "https://github.com/payu-intrepos/PayUMoney-IOS-SDK.git", :tag => "PayUmoney_PnP.2.3.1" }

s.ios.deployment_target = '8.0'
s.requires_arc = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,6 @@ - (void)resetThemeDetails {
[self loadThemeColor];
}

- (BOOL)shouldUseProdKeys {
PUMEnvironment environment = [self selectedEnv];
return environment == PUMEnvironmentProduction || environment == PUMEnvironmentTest;
}

#pragma mark - Helper methods

-(PUMTxnParam*)getTxnParam{
Expand All @@ -397,8 +392,8 @@ -(PUMTxnParam*)getTxnParam{
txnParam.amount = tfAmount.text;
txnParam.environment = [self selectedEnv];
txnParam.firstname = @"UserFirstName";
txnParam.key = [self shouldUseProdKeys] ? @"O15vkB" : @"Aqryi8";
txnParam.merchantid = [self shouldUseProdKeys] ? @"4819816" : @"397202";
txnParam.key = @"O15vkB";
txnParam.merchantid = @"4819816";
// params.txnid = [NSString stringWithFormat:@"0nf7%@",[self getRandomString:4]];
txnParam.txnID = @"12";
txnParam.surl = @"https://www.payumoney.com/mobileapp/payumoney/success.php";
Expand Down Expand Up @@ -582,14 +577,14 @@ - (IBAction)signOut {

-(PUMEnvironment)selectedEnv {
if(serverSelector.selectedSegmentIndex == 0){
return PUMEnvironmentPP42;
return PUMEnvironmentTest;
}
return PUMEnvironmentProduction;
}

//TODO: get rid of this function for test environemnt
-(NSString*)getHashForPaymentParams:(PUMTxnParam*)txnParam {
NSString *salt = [self shouldUseProdKeys] ? @"LU1EhObh" : @"ZRC9Xgru";
NSString *salt = @"LU1EhObh";
NSString *hashSequence = [NSString stringWithFormat:@"%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@|%@",txnParam.key,txnParam.txnID,txnParam.amount,txnParam.productInfo,txnParam.firstname,txnParam.email,txnParam.udf1,txnParam.udf2,txnParam.udf3,txnParam.udf4,txnParam.udf5,txnParam.udf6,txnParam.udf7,txnParam.udf8,txnParam.udf9,txnParam.udf10, salt];

NSString *hash = [[[[[self createSHA512:hashSequence] description]stringByReplacingOccurrencesOfString:@"<" withString:@""]stringByReplacingOccurrencesOfString:@">" withString:@""]stringByReplacingOccurrencesOfString:@" " withString:@""];
Expand Down
Binary file modified PlugNPlay/PlugNPlay.framework/Assets.car
Binary file not shown.
Binary file modified PlugNPlay/PlugNPlay.framework/Info.plist
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.
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 modified PlugNPlay/PlugNPlay.framework/PlugNPlay
Binary file not shown.
Binary file modified PlugNPlay/PlugNPlay.framework/PnPVerifyOTPPasswordVC.nib
Binary file not shown.

0 comments on commit aef7329

Please sign in to comment.