To run the example project, clone the repo, and run
pod install from the Example directory first.
AptoPCISDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
Using the PCI SDK
To use the PCI SDK, simply instantiate a PCIView and add it to yor view hierarchy:
Then, initialize the SDK using the initialize medhod:
Note: The allowed values for the
environment parameter are
To show the card's last four, use the following snippet:
To show the card's complete data, use the following snippet:
The PCI SDK will verify the user (if needed) and will show the card data.
Customise the PCI SDK
The PCI SDK look & feel can be customised in different ways:
Showing / hiding elements
You can decide which elements are shown by the PCI SDK. There are three elements that can be shown / hidden:
- Exp. Date
You can, also, define the css styles of various components, including:
- IFrame (container)
- PAN field.
- CVV field.
- Exp. Date field
To customise the PCI look and feel, you can use the following snippet:
To customize the different texts shown in alerts, you can use the following attribute:
Pau Teruel, firstname.lastname@example.org
AptoPCISDK is available under the MIT license. See the LICENSE file for more info.