YRPayment
Better payment user experience library with cool animation in Swift.
? Features
- [x] Easily usable
- [x] Simple Swift syntax
- [x] Cool flip animation
- [x] Compatible with
Carthage
- [x] Compatible with
CocoaPods
- [x] Customizable
- [x] Universal (iPhone & iPad)
- [x] Lightweight readable codebase
- [x] And More...
? Installation
Using CocoaPods
Edit your Podfile
and specify the dependency:
Using Carthage
Edit your Cartfile
and specify the dependency:
? How to use
In 4 steps:
1. Import YRPayment.
2. Create a YRPaymentCreditCard instance and link it to a YRPayement instances:
3. Add your card to a view and set its position:
4. link your textFields to the payment object:
(Assuming that NumberTF, NameTF, ValidityTF, cryptoTF are textField alrready created)
5. Enjoooooooy !
? Extracting data from the credit card
To extract data from the credit card :
- Credit card number :
- Credit card holder name :
- Credit card validity :
- Credit card cryptogram
? Customization : (more features are coming soon)
? Customizing the credit card type (Symbole):
When creating your creditCard instance (as seen before ?) MasterCard is default:
you can specify the symbole you want from the available types:
or specify a custom one by uploading your own image symbole:
More types are coming soon