#shaitan1126-cards

1 messages · Page 1 of 1 (latest)

twin osprey
silent moss
#

any help?

twin osprey
#

@silent moss you generally never want to do anything with card details on your server side because it opens you up to a lot of work in maintaining PCI compliance.

If the CVC is wrong then the payment will get declined! (it's a default setting : https://stripe.com/docs/radar/rules#traditional-bank-checks )

silent moss
#

No, I just want to validate the card details that all

twin osprey
#

what specific type of validation?

silent moss
#

So the cvv, expiry month year and credit card number should be valid

#

like if someone pass expiry date which is the past date then

#

stripe should return an error

twin osprey
#

that's all checked by Elements

silent moss
#

i've the custom form

twin osprey
#

but you use Elements right?

silent moss
#

no

twin osprey
#

you can't just use a raw HTML form for card numbers.

silent moss
#

just taking input from user in a custom form and sending that data on my server

twin osprey
#

yeah you really can't do that.

silent moss
#

Can i use stripe elements in custom form?

twin osprey
#

yes

silent moss
#

any helpfull link?

silent moss
#

I am working in reactjs

#

It will work ?

twin osprey
#

yes we have a React wrapper for the library(it's covered in that link above, it has React examples)