Skip to content

alimir1/Eureka-StripeRow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StripeRow: STPPaymentCardTextField for Eureka in Swift

Platform iOS Swift 3 compatible License: MIT

Made with ❤️ by Ali Mir. This requires Eureka and Stripe iOS libraries.

Overview

StripeRow Stripe payment ios app in Swift

Contents

Installation

  1. Install Stripe
  2. Install Eureka
  3. Add "StripeRow.swift" to your project

Introduction

StripeRow is a custom row for Eureka in which the user will be able to input a credit card, its expiration date and the CVV/CVC value via Stripe's STPPaymentCardTextField. It was created for Slugbug's iOS app.

Usage

import Eureka
import Stripe

class ViewController: FormViewController {
    
    var paymentField = STPPaymentCardTextField()
    
    override func viewDidLoad() {
        form +++
            Section(footer: "Credit or Debit Card")
            <<< StripeRow().cellUpdate { cell, row in
                self.paymentField = cell.paymentField
        }
    }
}

Requirements

  • iOS 8.0+
  • Xcode 8.3+

Examples

Follow these steps to run Example project:

  • Clone Eureka-StripeRow repository
  • Open EurekaStripeRowExample workspace
  • Run the Example project.

Author

  • Ali Mir

About

A Eureka Row for Stripe's STPPaymentCardTextField

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published