All Projects → yassram → Yrpayment

yassram / Yrpayment

Licence: mit
Better payment user experience library with cool animation in Swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Yrpayment

react-credit-cards
Beautiful credit cards for your payment forms
Stars: ✭ 2,386 (+1255.68%)
Mutual labels:  payment, credit-card
Mfcard
Easily integrate Credit Card payments module in iOS App. Swift 4.0
Stars: ✭ 356 (+102.27%)
Mutual labels:  payment, credit-card
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (-64.77%)
Mutual labels:  payment, credit-card
credit-card-prompt
Credit card prompt with validation and address lookup
Stars: ✭ 13 (-92.61%)
Mutual labels:  payment, credit-card
Omise Ios
Omise iOS SDK
Stars: ✭ 63 (-64.2%)
Mutual labels:  payment, credit-card
ccashcow
💰 Accept cards & crypto. Payments so easy a cow could do it.
Stars: ✭ 40 (-77.27%)
Mutual labels:  payment, credit-card
frames-android
Checkout API Client, Payment Form UI and Utilities
Stars: ✭ 26 (-85.23%)
Mutual labels:  payment, credit-card
svelte-stripe-js
Everything you need to add Stripe Elements to your Svelte project
Stars: ✭ 139 (-21.02%)
Mutual labels:  payment, credit-card
Moyasar Php
Moyasar PHP client library
Stars: ✭ 5 (-97.16%)
Mutual labels:  payment, credit-card
Vue Interactive Paycard
Credit card form with smooth and sweet micro-interactions
Stars: ✭ 5,451 (+2997.16%)
Mutual labels:  payment, credit-card
terms-dictionary
Simple definitions of terms, acronyms, abbreviations, companies, and projects related to financial services and Moov.
Stars: ✭ 48 (-72.73%)
Mutual labels:  payment, credit-card
React Interactive Paycard
Interactive React Paycard
Stars: ✭ 2,129 (+1109.66%)
Mutual labels:  payment, credit-card
ng-payment-card
💳 Responsive credit card component for Angular.
Stars: ✭ 27 (-84.66%)
Mutual labels:  payment, credit-card
PCard
Demo project to showcase adding payment card details using JetPack Compose
Stars: ✭ 61 (-65.34%)
Mutual labels:  payment, credit-card
React Credit Cards
Beautiful credit cards for your payment forms
Stars: ✭ 2,239 (+1172.16%)
Mutual labels:  payment, credit-card
Payment
💰 A jQuery-free general purpose library for building credit card forms, validating inputs and formatting numbers.
Stars: ✭ 467 (+165.34%)
Mutual labels:  payment, credit-card
React Native Credit Card Input
Easy, cross-platform credit-card input for your React Native Project! Start accepting payment 💰 in your app today!
Stars: ✭ 1,244 (+606.82%)
Mutual labels:  payment, credit-card
Go Payment
Payment Connector for Midtrans and Xendit. Sample site that is using this payment proxy is https://imrenagi.com/donate
Stars: ✭ 136 (-22.73%)
Mutual labels:  payment, credit-card
Php Banks Db
PHP library for getting bank info (name, brand color etc) by first digits of card's number
Stars: ✭ 133 (-24.43%)
Mutual labels:  credit-card
Gopay
golang语言实现的支付模块,支持支付宝app,支付宝网页版,微信app,微信公众号支付
Stars: ✭ 151 (-14.2%)
Mutual labels:  payment

Twitter Follow Carthage Carthage

🎬 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 :

  1. Credit card number :
payment.getCardNumber()
  1. Credit card holder name :
payment.getCardHolderName()
  1. Credit card validity :
payment.getCardValidity()
  1. 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 issue.
  • Send feedback via email.
  • Propose your own fixes, suggestions and open a pull request with the changes.

📢 Mentions

Did you mention YRPayment in your website, do you use it in your app ? send me a message to be added in this section!


💻 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 the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].