#krustyflakes-stpCardFormView

1 messages · Page 1 of 1 (latest)

soft osprey
#

Hey, meant to message before that I am looking in to this. I am still looking in to this. Will get back soon

#

Oh wait there may be something more

buoyant canopy
#

On a separate note, I was looking into the sample code and saw a credit card form instantiating the stpFormView, it gave flexibility for customization and allowed to hide country field, do you know if following this approach retains PCI compliance

light sundial
#

I was looking into the sample code and saw a credit card form instantiating the stpFormView
can you share a link?

#

modifying the pre built UI does compromise PCI compliance technically

#

also can you try something for me, in your STPCardFormView constructor, do you get the chance to pass an argument for postalCodeRequirement ??

buoyant canopy
#

We do want to allow postal code

#

Product was looking into hiding

#

It but the stpCardFormView minus the country is exactly what we need

#

So we might either keep it with the country or look into creating our own instance of stpFormView with the specifics we need

#

Is the PCI compliance is not an issue

#

If the*

#

Ohh thanks you

light sundial
#

not recommended to modify STPCardFormView or roll your own UI
so really you want to use STPPaymentCardTextField instead as an alternative

Can you tell me about my earlier question in

also can you try something for me, in your STPCardFormView constructor, do you get the chance to pass an argument for postalCodeRequirement ??

buoyant canopy
#

Let me find the code

buoyant canopy
#

i believe the Code i reviewed was quite old, i just downloaded the UI Examples from your git and all i see over here is CardFormViewController as the final implementation that does not allow field customizations, the code i saw before had field arrays and had the same class name so i assume it was the code pre component release

#

STPCardFormView*

#

we have released the form for iOS, Android and web, the product team noticed that the looks were inconsistent, seems like android does not show country, i assume the 3 are very separate implementations

buoyant canopy
light sundial
#

they are separate implementations yes though my understanding was iOS and Android should be ~close

give me a bit to spin up my iOS samples and try it out and compare the STPFormView.

but yes I agree that constructor only allows you to pass style and not disable billing collection

buoyant canopy
#

yes and country seems to be fixed for iOS yet not for android

light sundial
#

this is web right?

#

not iOS or Android

buoyant canopy
#

the first was iOS and second android

light sundial
#

oh

buoyant canopy
#

those are the out of the box forms

light sundial
#

is the second one CardForm on Android? Or CardMultilineWidget?

buoyant canopy
#

they are both card form

light sundial
#

I don't recall which one is which but they're fairly similar

buoyant canopy
#

the android one i believe we added the name fields outside of the form

light sundial
#

yes name is outside of CardForm

buoyant canopy
#

the difference being the country field

light sundial
#

ok firing up my Android Studio and Xcode, which will take a billion years lol

buoyant canopy
#

hehe appreciate it

light sundial
#

and slow down my machine to a crawl

#

that is CardForm on Android

#

and I think what you linked is CardMultilineWidget

#

which is the "older" version of the card input "split fields" component, before CardForm came around

#

and it does have Country field

#

and postal is a separate line

#

^this is CardMultilineWidget (just added it in my code)

#

so yes both iOS and Android have a country field in them for CardFormView

#

and the reason for that is, they change postal code validation based on what country is selected

#

or hide postal code entirely for countries that don't use postal code

#

so there's value in keeping them

#

so for US/CA/UK they show postal and update the validation accordingly

#

does that help?

buoyant canopy
#

ohh i see, i'll talk to the android engineers

#

is card multiline widget available for iOS?

light sundial
#

no

#

Android only