YRPayment alternatives and similar libraries
Based on the "Payments" category.
Alternatively, view YRPayment alternatives based on common mentions on social networks and blogs.
-
SwiftyStoreKit
Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ โบ -
RevenueCat
In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS. -
CreditCardForm-iOS
CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card. -
monza
Ruby Gem for Rails - Easy iTunes In-App Purchase Receipt validation, including auto-renewable subscriptions -
Glassfy
DISCONTINUED. Open source SDK to quickly integrate subscriptions, stop worring about code maintenance, and getting advanced real-time data. Full support for iOS, iPadOS, WatchOS, MacOS
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of YRPayment or a related project?
README
๐ฌ Preview
๐ 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:
pod "YRPayment"
Using Carthage
Edit your Cartfile
and specify the dependency:
github "yassram/YRPayment"
๐ How to use
In 4 steps:
1. Import YRPayment.
import YRPayment
2. Create a YRPaymentCreditCard instance and link it to a YRPayement instances:
let card = YRPaymentCreditCard()
let payment = YRPayment(creditCard: card)
3. Add your card to a view and set its position:
view.addSubview(card)
card.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
card.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
4. link your textFields to the payment object:
payment.numberTextField = NumberTF
payment.holderNameTextField = NameTF
payment.validityTextField = ValidityTF
payment.cryptogramTextField = cryptoTF
(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 :
payment.getCardNumber()
Credit card holder name :
payment.getCardHolderName()
Credit card validity :
payment.getCardValidity()
Credit card cryptogram
payment.getCardCryptogram()
๐จ Customization : (more features are coming soon)
๐ณ Customizing the credit card type (Symbole):
When creating your creditCard instance (as seen before ๐) MasterCard is default:
let card = YRPaymentCreditCard()
you can specify the symbole you want from the available types:
let card = YRPaymentCreditCard(type: .masterCard)
or specify a custom one by uploading your own image symbole:
let image = UIImage(named: "mySymboleImage")!
let card = YRPaymentCreditCard(type: .custom(image))
More types are coming soon
๐น Enable/Disable flip on user tap:
// Enable payment.flipOnClick = true
// Disable payment.flipOnClick = false
## ๐ Contributing
This is an open source project, so feel free to contribute. How?
- Open an <a href="https://github.com/YRPayment/issues/new"> issue</a>.
- Send feedback via <a href="mailto:[email protected]">email</a>.
- Propose your own fixes, suggestions and open a pull request with the changes.
## ๐ข Mentions
- https://www.cocoacontrols.com/controls/better-payment-user-experience-library-with-cool-animation-in-swift
- https://github.com/vsouza/awesome-ios
Did you mention `YRPayment` in your website, do you use it in your app ? send me a <a href="mailto:[email protected]">message</a> to be added in this section!
<br>
<br>
<br>
## ๐ป Author
* Yassir Ramdani
## ๐ License
MIT License
Copyright (c) 2019 yassir RAMDANI
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the YRPayment README section above
are relevant to that project's source code only.