Skip to content

Commit

Permalink
Added BeneficiaryParam from sample app screen
Browse files Browse the repository at this point in the history
  • Loading branch information
umangarya336 committed Aug 27, 2020
1 parent 4be3266 commit 12e5b93
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ @interface PUSAStartScreenVC ()
@property (weak, nonatomic) IBOutlet UITextField *textFieldSalt;
@property (weak, nonatomic) IBOutlet UITextField *textFieldSVAmount;
@property (weak, nonatomic) IBOutlet UITextField *textFieldSVEligibility;
@property (weak, nonatomic) IBOutlet UITextField *textFieldBeneficiaryAccountNumber;
@property (weak, nonatomic) IBOutlet UIScrollView *startScreenScrollView;
- (IBAction)switchButtonForNil:(id)sender;
- (IBAction)clickedBtnStart:(id)sender;
Expand Down Expand Up @@ -93,7 +94,7 @@ -(void)initialSetup{
self.switchForOneTap = (UISwitch *)[self.startScreenScrollView viewWithTag:19];

// self.paymentParam.key = @"0MQaQP";//@"gtKFFx";//@"0MQaQP";
self.paymentParam.amount = @"10.00";
self.paymentParam.amount = @"1.00";
self.paymentParam.productInfo = @"Nokia";
self.paymentParam.firstName = @"Ram";
self.paymentParam.email = @"email@testsdk1.com";
Expand All @@ -106,6 +107,7 @@ -(void)initialSetup{
self.paymentParam.udf3 = @"u3";
self.paymentParam.udf4 = @"u4";
self.paymentParam.udf5 = @"u5";
self.paymentParam.beneficiaryAccountNumbers = @"4535665647";
// self.paymentParam.environment = ENVIRONMENT_PRODUCTION;
[self setEnvironment:ENVIRONMENT_PRODUCTION];
[self setSalt:@"1b1b0"];
Expand Down Expand Up @@ -150,7 +152,7 @@ -(void)initialSetupForViewInput{
self.textFieldUDF5.text = self.paymentParam.udf5;
self.textFieldEnvironment.text = self.paymentParam.environment;
self.textFieldOfferKey.text = self.paymentParam.offerKey;

self.textFieldBeneficiaryAccountNumber.text = self.paymentParam.beneficiaryAccountNumbers;
}

-(void)addPaymentResponseNotofication{
Expand Down Expand Up @@ -216,6 +218,7 @@ -(void)setPaymentParamAndStartProcess{
self.paymentParam.udf4 = self.textFieldUDF4.text;
self.paymentParam.udf5 = self.textFieldUDF5.text;
self.paymentParam.userCredentials = self.textFieldUserCredential.text;
self.paymentParam.beneficiaryAccountNumbers = self.textFieldBeneficiaryAccountNumber.text;

// set notify URL if you want to pay through Lazy Pay
self.paymentParam.notifyURL= @"https://notifyURL.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="gkh-KH-37f">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="gkh-KH-37f">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -363,27 +363,29 @@
<outlet property="delegate" destination="e5E-55-FGB" id="wBe-ao-ouj"/>
</connections>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="OiB-iY-NgH">
<rect key="frame" x="196" y="748" width="110" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<connections>
<outlet property="delegate" destination="e5E-55-FGB" id="NaW-Hr-b5W"/>
</connections>
</textField>
<switch opaque="NO" tag="18" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="orX-Xy-wDd">
<rect key="frame" x="136" y="710" width="51" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<connections>
<action selector="switchButtonForNil:" destination="e5E-55-FGB" eventType="valueChanged" id="FqY-T6-meI"/>
</connections>
</switch>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="EnableOneTap" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qDd-eb-r75">
<rect key="frame" x="8" y="753" width="130" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="BeneficiaryAccount" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qDd-eb-r75">
<rect key="frame" x="8" y="753" width="148" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<switch hidden="YES" opaque="NO" tag="19" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="fPG-n8-WHC">
<rect key="frame" x="136" y="748" width="51" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<connections>
<action selector="switchButtonForNil:" destination="e5E-55-FGB" eventType="valueChanged" id="Nay-Fn-YT9"/>
</connections>
</switch>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Lno-Jh-ivK">
<rect key="frame" x="286" y="800" width="59" height="46"/>
<fontDescription key="fontDescription" type="system" pointSize="28"/>
Expand Down Expand Up @@ -456,6 +458,7 @@
<outlet property="switchBtnSVAmount" destination="gdw-MK-Hmh" id="Khr-Gp-dAk"/>
<outlet property="switchBtnSVEligibility" destination="gVS-Jc-6uz" id="WZG-2i-1cB"/>
<outlet property="textFieldAmount" destination="7a6-0h-jY7" id="KjX-94-SDj"/>
<outlet property="textFieldBeneficiaryAccountNumber" destination="OiB-iY-NgH" id="wx2-PU-eQM"/>
<outlet property="textFieldEmail" destination="slB-Vm-JwA" id="tbf-2v-YoU"/>
<outlet property="textFieldEnvironment" destination="rQs-Lc-5kC" id="94A-Zi-Y0Q"/>
<outlet property="textFieldFURL" destination="Oz9-KV-c7R" id="IA1-jR-iCU"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#import "PUVAConfiguration.h"
#import <PayUBizCoreSDK/PayUBizCoreSDK.h>

@implementation PUVAConfiguration

-(instancetype)init{
Expand Down

0 comments on commit 12e5b93

Please sign in to comment.