{"id":13383542,"url":"https://github.com/mobilefirstinc/MFCard","last_synced_at":"2025-03-13T09:31:46.059Z","repository":{"id":56920351,"uuid":"73067564","full_name":"MobileFirstInc/MFCard","owner":"MobileFirstInc","description":"Easily integrate Credit Card payments module in iOS App. Swift 4.0 ","archived":false,"fork":false,"pushed_at":"2020-07-29T06:15:25.000Z","size":25050,"stargazers_count":364,"open_issues_count":12,"forks_count":47,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-09-22T04:02:21.675Z","etag":null,"topics":["animation","card","cocoapods","credit-card","ios","mobilefirst","payment","swift","validation"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MobileFirstInc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T10:29:51.000Z","updated_at":"2024-09-16T02:19:12.000Z","dependencies_parsed_at":"2022-08-20T21:50:20.011Z","dependency_job_id":null,"html_url":"https://github.com/MobileFirstInc/MFCard","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileFirstInc%2FMFCard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileFirstInc%2FMFCard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileFirstInc%2FMFCard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileFirstInc%2FMFCard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MobileFirstInc","download_url":"https://codeload.github.com/MobileFirstInc/MFCard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221356611,"owners_count":16804206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","card","cocoapods","credit-card","ios","mobilefirst","payment","swift","validation"],"created_at":"2024-07-30T10:01:20.963Z","updated_at":"2024-10-24T22:30:36.444Z","avatar_url":"https://github.com/MobileFirstInc.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/mobilefirst"],"categories":["Payments"],"sub_categories":["Other free courses"],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFcard%20poster.jpg\" alt=\" text\" width=\"100%\" /\u003e\n\n# MFCard\n\n\u003cimg src=\"https://img.shields.io/badge/platform-iOS-blue.svg?style=flat\" alt=\"Platform iOS\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/swift4-compatible-green.svg?style=flat\" alt=\"Swift 4 compatible\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/swift5-compatible-green.svg?style=flat\" alt=\"Swift 5 compatible\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat\" alt=\"License MIT\" /\u003e\n\u003ca href=\"https://cocoapods.org/pods/MFCard\"\u003e\u003cimg src=\"https://img.shields.io/badge/pod-1.2.7-blue.svg\" alt=\"CocoaPods compatible\" /\u003e\u003c/a\u003e\n\n\u003ca class=\"bmc-button\" target=\"_blank\" href=\"https://www.buymeacoffee.com/mobilefirst\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg\" alt=\"Buy me a coffee\"\u003e\u003cspan style=\"margin-left:5px;font-size:28px !important;\"\u003eBuy me a coffee\u003c/span\u003e\u003c/a\u003e\n\nMFCard is an awesome looking Credit Card input \u0026 validation control. Written in Swift 3.\n\nYOoo, Now MFCard is on Swift 5.\n\n* Swift 5.0 (Xcode 11.0)*\n\n```ruby\npod 'MFCard'\n```\n\n*Or you can choose version for Swift 4*\n\n```ruby\npod 'MFCard', '1.2.6'\n```\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFCardDemo/Screens/Card Front.png\" alt=\" text\" width=\"40%\" /\u003e\n\n## MobileFirst Applications\nWe are a mobile development agency working on Swift for iOS, Java for Android. We are available for new projects. \n\n## Demo\n\n\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFCardDemo/Screens/_MFCard.gif\" alt=\" text\" width=\"40%\" /\u003e\n\n\n## Usage\n\nFirst Step  - `@import MFCard` to your project\n\nSecond Step - Add a delegate `MFCardDelegate` to your class \u0026 add two delegate methods\n\nThird Step - Present a Card\n\n```\nvar myCard : MFCardView\nmyCard  = MFCardView(withViewController: self)\nmyCard.delegate = self\nmyCard.autoDismiss = true\nmyCard.toast = true\nmyCard.showCard()\n\n```\n## Handle Done button(delegate method) clicked\n\n```\nfunc cardDoneButtonClicked(_ card: Card?, error: String?) {\nif error == nil{\nprint(card!)\n}else{\nprint(error!)\n}\n}\n\n```\n\n## Show Card with Details\n\n```\nvar myCard : MFCardView\nmyCard  = MFCardView(withViewController: self)\nmyCard.delegate = self\nmyCard.autoDismiss = true\nmyCard.toast = true\nlet demoCard :Card? = Card(holderName: \"Rahul Chandnani\", number: \"6552552665526625\", month: Month.Dec, year: \"2019\", cvc: \"234\", paymentType: Card.PaymentType.bank, cardType: CardType.Discover, userId: 0)\nmyCard.showCardWithCardDetails(card: demoCard!)\n\n```\n\n## CocoaPods Install\n\nAdd this to your Podfile.\n\n```\npod 'MFCard'\n```\n\n\n## Supported Cards\n\n* MasterCard\n* Visa\n* JCB\n* Diners\n* Discover\n* Amex\n* Maestro\n* UnionPay\n* Electron\n* Dankort\n* RuPay\n\n## Customisation Options\n\n- Card Image\n- Background colour\n- Front Chrome colour (Front Card colour)\n- Back Chrome colour (Back Card colour)\n- Front Chrome Alpha\n- Back Chrome Alpha\n- Back Card Magnetic Tap colour\n- All Label colour\n- TextField Customisation\n- Control Buttons\n- Corner Radius\n- Placeholders\n- Auto Dismiss\n- Flip on Done\n- Animation on CardType Change\n- MFCard show - BlurStyle\n\n\n## Screenshots\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFCardDemo/Screens/Card1.png\" alt=\" text\" width=\"40%\" /\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFCardDemo/Screens/Card Back.png\" alt=\" text\" width=\"40%\" /\u003e\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/MobileFirstInc/MFCard/master/MFCardDemo/Screens/MF.png\" alt=\" text\" width=\"60%\" /\u003e\n\n\n\n\n## Features\n\n- Card Validation Support\n- Present Card like alert\n- Swipe Gesture To Swipe Card front \u0026 back\n- Error Handing\n- Toast Messages for error handling\n- All Properties editable using IBDesignable\n- Animations\n- Easy to use\n\n\n## Collaboration\nFeel free to collaborate with ideas, issues and/or pull requests.\n\n\n## Further Plans\n\n- Provide More Classic card views\n- Mutiple Card Collection Viewer\n- Stripe Integration\n- Language Support (French, Spanish)\n- More Animations :-P\n\n## Thanks\n- https://github.com/RC7770/CreditCardValidator\n- https://github.com/scalessec/Toast-Swift\n- Icon Credit : https://thenounproject.com/term/credit-card/490264/\n\n\n\n\n## Contact\n\n* Arpan \u0026 Rahul (http://mobilefirst.in)\n* Twitter: [@mobilefirstinc](http://twitter.com/mobilefirstinc)\n* Email : [arpan at mobilefirst.in](mailto:arpan@mobilefirst.in)\n\n## License\n\nMFCard is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobilefirstinc%2FMFCard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobilefirstinc%2FMFCard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobilefirstinc%2FMFCard/lists"}