Skip to content

Commit

Permalink
Made integration using pod
Browse files Browse the repository at this point in the history
  • Loading branch information
umangarya336 committed Aug 27, 2020
1 parent 12e5b93 commit caf731b
Show file tree
Hide file tree
Showing 634 changed files with 1,157 additions and 18,314 deletions.
93 changes: 90 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
*.xcuserstate
project.xcworkspace/
xcuserdata/
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>sdkVersion</key>
<string>4.1.0</string>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ -(void)initialSetup{
self.paymentParam.udf3 = @"u3";
self.paymentParam.udf4 = @"u4";
self.paymentParam.udf5 = @"u5";
self.paymentParam.beneficiaryAccountNumbers = @"4535665647";
self.paymentParam.beneficiaryAccountNumbers = @"";
// self.paymentParam.environment = ENVIRONMENT_PRODUCTION;
[self setEnvironment:ENVIRONMENT_PRODUCTION];
[self setSalt:@"1b1b0"];
Expand Down
5 changes: 5 additions & 0 deletions BizCore+CB SampleApp/ObjC/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target 'PayUNonSeamlessTestApp' do
use_frameworks!
pod 'PayUIndia-PG-SDK'
pod 'PayUIndia-Custom-Browser'
end
20 changes: 20 additions & 0 deletions BizCore+CB SampleApp/ObjC/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PODS:
- PayUIndia-Custom-Browser (6.0)
- PayUIndia-PG-SDK (4.1.0)

DEPENDENCIES:
- PayUIndia-Custom-Browser
- PayUIndia-PG-SDK

SPEC REPOS:
trunk:
- PayUIndia-Custom-Browser
- PayUIndia-PG-SDK

SPEC CHECKSUMS:
PayUIndia-Custom-Browser: 61097aa039fdf579193cf8cf8ecfe6d81574966d
PayUIndia-PG-SDK: 0f01dc412a9b4a53024feb20513f29a9f919e8d0

PODFILE CHECKSUM: b07cc0f8d82531d2f58734d3f241089b945f2ce5

COCOAPODS: 1.9.3
5 changes: 5 additions & 0 deletions BizCore+CB SampleApp/Swift/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target 'SwiftSampleApp' do
use_frameworks!
pod 'PayUIndia-PG-SDK'
pod 'PayUIndia-Custom-Browser'
end
20 changes: 20 additions & 0 deletions BizCore+CB SampleApp/Swift/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PODS:
- PayUIndia-Custom-Browser (6.0)
- PayUIndia-PG-SDK (4.1.0)

DEPENDENCIES:
- PayUIndia-Custom-Browser
- PayUIndia-PG-SDK

SPEC REPOS:
trunk:
- PayUIndia-Custom-Browser
- PayUIndia-PG-SDK

SPEC CHECKSUMS:
PayUIndia-Custom-Browser: 61097aa039fdf579193cf8cf8ecfe6d81574966d
PayUIndia-PG-SDK: 0f01dc412a9b4a53024feb20513f29a9f919e8d0

PODFILE CHECKSUM: 8b475dc8dea2e5a3a687a322a30750556ab91802

COCOAPODS: 1.9.3
675 changes: 675 additions & 0 deletions BizCore+CB SampleApp/Swift/SwiftSampleApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class OrderPageVC: UIViewController {
@IBOutlet weak var userCredential: UITextField!
@IBOutlet weak var surepayCount: UITextField!
@IBOutlet weak var salt: UITextField!

@IBOutlet weak var beneficiaryDetails: UITextField!


//Properties
var isKeyboardVisible = false
let paymentParams = PayUModelPaymentParams()
let webServiceResponse = PayUWebViewResponse()
let activityIndicator = ActivityIndicator()

let checkoutStoryboardID = "PUUIMainStoryBoard"
Expand All @@ -49,14 +49,15 @@ class OrderPageVC: UIViewController {
}

func setupInitialValues() {
merchantKey.text = "0MQaQP"
merchantKey.text = "smsplus"
email.text = "email@example.com"
transactionId.text = randomString(length: 6)
amount.text = "1"
environment.text = ENVIRONMENT_PRODUCTION
userCredential.text = "merchantKey:uniqueUserIDAtMerchantEnd"
surepayCount.text = "2"
salt.text = "1b1b0"
beneficiaryDetails.text = ""
}


Expand Down Expand Up @@ -94,7 +95,9 @@ class OrderPageVC: UIViewController {
if let err = error {
print("Error occured in generating hash: \(err)")
} else {
weakSelf?.saveHashesAndProceedToFetchPaymentRelatedDetails(hashes)
DispatchQueue.main.async {
weakSelf?.saveHashesAndProceedToFetchPaymentRelatedDetails(hashes)
}
}
}
}
Expand All @@ -116,6 +119,7 @@ class OrderPageVC: UIViewController {
paymentParams.userCredentials = userCredential.text
paymentParams.surl = "https://payu.herokuapp.com/ios_success"
paymentParams.furl = "https://payu.herokuapp.com/ios_failure"
paymentParams.beneficiaryAccountNumbers = beneficiaryDetails.text
paymentParams.productInfo = "iPhoneXS" //Add information about the production for which transaction is being initiated
}

Expand Down Expand Up @@ -198,6 +202,8 @@ class OrderPageVC: UIViewController {

@IBAction func saltToggled(_ sender: UISwitch) {
salt.isHidden = sender.isOn ? false : true
beneficiaryDetails.isHidden = sender.isOn ? false : true
beneficiaryDetails.text = ""
}

func setupKeyboardHandlers() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#ifndef SwiftSampleApp_Bridging_Header_h
#define SwiftSampleApp_Bridging_Header_h

#import "PayU_iOS_CoreSDK.h"
#import "PUUIPaymentOptionVC.h"
#import "PUUIConstants.h"
#import "PUSAHelperClass.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit caf731b

Please sign in to comment.