orazz / CreditCardForm-iOS

CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card.
MIT License
1.47k stars 165 forks source link

Stripe #14

Closed gomitaana closed 4 years ago

gomitaana commented 7 years ago

It´s possible to use it without Stripe?

patchthecode commented 7 years ago

i am going to use this together with stripe

ErShreyansh12 commented 7 years ago

Waiting for library to use without stripe. Because in my application, different payment gateway used. And only for this i need to install pod of stripe and too many files are added in project.

blinkuz commented 5 years ago

I also needed to use this pod but without stripe since I am interested only in the visual part for the management of the credit card, if it were possible to integrate it without a stripe, please give me some reference link.

orazz commented 4 years ago

Waiting for library to use without stripe. Because in my application, different payment gateway used. And only for this i need to install pod of stripe and too many files are added in project.

You don't have to install Stripe. If you're using different payment gateway just implement delegate for your textfield and in textDidChange method put this code:

creditCardForm.paymentCardTextFieldDidChange(cardNumber: textField.cardNumber, expirationYear: textField.expirationYear, expirationMonth: textField.expirationMonth, cvc: textField.cvc)

for expire year:

creditCardForm.paymentCardTextFieldDidEndEditingExpiration(expirationYear: textField.expirationYear)

cvc field did begin editing

creditCardForm.paymentCardTextFieldDidBeginEditingCVC()

cvc field did end editing

 creditCardForm.paymentCardTextFieldDidEndEditingCVC()