Skip to content

Commit

Permalink
Remove Token support from samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimlawal committed Apr 9, 2017
1 parent a4032a0 commit e55eeea
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 165 deletions.
64 changes: 21 additions & 43 deletions Example/Paystack iOS Example/Base.lproj/Main.storyboard
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment version="2048" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -19,36 +22,19 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="caps" translatesAutoresizingMaskIntoConstraints="NO" id="VbY-Dc-i7d"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gye-Pb-O4B">
<color key="backgroundColor" red="1" green="1" blue="1" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Charge Token"/>
<connections>
<action selector="chargeToken:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="eLP-xe-DOv"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Token will show here." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LoX-1h-kWF">
<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"/>
<color key="shadowColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<size key="shadowOffset" width="-1" height="1"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="caps" translatesAutoresizingMaskIntoConstraints="NO" id="VbY-Dc-i7d">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="75.80 naira for a cap" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W8k-gN-iqf">
<rect key="frame" x="26" y="37" width="268" height="21.5"/>
<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"/>
<color key="shadowColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<size key="shadowOffset" width="-1" height="1"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3Qq-BR-o7Y">
<color key="backgroundColor" red="1" green="1" blue="1" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Request Token"/>
<connections>
<action selector="requestToken:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="nsD-He-8v0"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Sy1-zj-m3t" customClass="PSTCKPaymentCardTextField">
<rect key="frame" x="26" y="65.5" width="268" height="40"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Cae-12-0DA"/>
Expand All @@ -57,54 +43,46 @@
<action selector="cardDetailsChanged:" destination="vXZ-lx-hvc" eventType="valueChanged" id="dsj-5p-Kpf"/>
</connections>
</view>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Email address" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="AE6-rv-GdU">
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="emailAddress"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3OP-Hn-6gA">
<rect key="frame" x="207" y="113.5" width="87" height="30"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Charge Card"/>
<connections>
<action selector="chargeCard:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="MyM-MF-CeH"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="succeeded: chargedsiuhdbbdbjshkdkdjhjnd,mmn cnmmcnjc" textAlignment="natural" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hfe-wW-WzS">
<rect key="frame" x="26" y="154" width="268" height="50"/>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="W8k-gN-iqf" secondAttribute="trailing" constant="10" id="1Rg-2B-ETU"/>
<constraint firstItem="W8k-gN-iqf" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="3QW-zh-Mxi"/>
<constraint firstAttribute="trailingMargin" secondItem="gye-Pb-O4B" secondAttribute="trailing" constant="10" id="4f0-tI-Cm0"/>
<constraint firstItem="Hfe-wW-WzS" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="4N2-6E-riw"/>
<constraint firstItem="2fi-mo-0CV" firstAttribute="top" secondItem="VbY-Dc-i7d" secondAttribute="bottom" id="7MR-CP-xDm"/>
<constraint firstItem="LoX-1h-kWF" firstAttribute="top" secondItem="3OP-Hn-6gA" secondAttribute="bottom" constant="8" id="7f9-QZ-hSP"/>
<constraint firstItem="Hfe-wW-WzS" firstAttribute="top" secondItem="3OP-Hn-6gA" secondAttribute="bottom" constant="10" id="CcG-RE-nGb"/>
<constraint firstItem="Sy1-zj-m3t" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="JRW-PJ-OtG"/>
<constraint firstItem="W8k-gN-iqf" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" constant="17" id="MrX-UX-Ws6"/>
<constraint firstItem="AE6-rv-GdU" firstAttribute="top" secondItem="LoX-1h-kWF" secondAttribute="bottom" constant="8" id="OUW-wI-6dg"/>
<constraint firstItem="3Qq-BR-o7Y" firstAttribute="top" secondItem="Sy1-zj-m3t" secondAttribute="bottom" constant="8" id="ScZ-OM-xZb"/>
<constraint firstAttribute="trailingMargin" secondItem="Sy1-zj-m3t" secondAttribute="trailing" constant="10" id="Skw-OH-fCr"/>
<constraint firstItem="LoX-1h-kWF" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="X5N-fo-LXH"/>
<constraint firstAttribute="trailingMargin" secondItem="LoX-1h-kWF" secondAttribute="trailing" constant="10" id="XRQ-3V-uCq"/>
<constraint firstItem="Sy1-zj-m3t" firstAttribute="top" secondItem="W8k-gN-iqf" secondAttribute="bottom" constant="7" id="Xj5-zi-3xA"/>
<constraint firstItem="AE6-rv-GdU" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="bk1-HK-TN5"/>
<constraint firstItem="3Qq-BR-o7Y" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="gBC-Dg-zgz"/>
<constraint firstAttribute="trailing" secondItem="VbY-Dc-i7d" secondAttribute="trailing" id="i83-qk-iV9"/>
<constraint firstItem="gye-Pb-O4B" firstAttribute="top" secondItem="AE6-rv-GdU" secondAttribute="bottom" constant="8" id="ifp-bd-AeM"/>
<constraint firstAttribute="trailingMargin" secondItem="3OP-Hn-6gA" secondAttribute="trailing" constant="10" id="mKN-ek-jgy"/>
<constraint firstAttribute="trailingMargin" secondItem="Hfe-wW-WzS" secondAttribute="trailing" constant="10" id="mrY-D8-0ss"/>
<constraint firstItem="3OP-Hn-6gA" firstAttribute="top" secondItem="Sy1-zj-m3t" secondAttribute="bottom" constant="8" id="nMn-eK-6RP"/>
<constraint firstItem="VbY-Dc-i7d" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="qPH-X1-Jt1"/>
<constraint firstAttribute="trailingMargin" secondItem="AE6-rv-GdU" secondAttribute="trailing" constant="10" id="twt-YD-FlJ"/>
<constraint firstItem="VbY-Dc-i7d" firstAttribute="top" secondItem="kh9-bI-dsS" secondAttribute="top" id="vC4-f9-P8N"/>
<constraint firstItem="gye-Pb-O4B" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" constant="10" id="wh7-ES-Dj8"/>
</constraints>
</view>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<size key="freeformSize" width="320" height="568"/>
<connections>
<outlet property="cardDetailsForm" destination="Sy1-zj-m3t" id="Z0T-Q7-wqD"/>
<outlet property="chargeCardButton" destination="3OP-Hn-6gA" id="6lJ-Fi-PPM"/>
<outlet property="chargeTokenButton" destination="gye-Pb-O4B" id="ZzD-8V-zUL"/>
<outlet property="emailText" destination="AE6-rv-GdU" id="sc7-sq-IaD"/>
<outlet property="requestTokenButton" destination="3Qq-BR-o7Y" id="9vW-Ax-mVn"/>
<outlet property="tokenLabel" destination="LoX-1h-kWF" id="kI4-x7-iKu"/>
<outlet property="tokenLabel" destination="Hfe-wW-WzS" id="sAz-wd-APX"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
Expand Down
2 changes: 1 addition & 1 deletion Example/Paystack iOS Example/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>3.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit e55eeea

Please sign in to comment.