#Hariharasuthan

1 messages · Page 1 of 1 (latest)

candid quartzBOT
abstract wigeon
#

Hey there

#

So when using Elements you don't pass the values from the Elements directly

#

All you have to do is pass your cardElement

#

Like stripe.createToken(cardElement).then(function(result) { // Handle result.error or result.token });

#

Stripe.JS will grab the values from Card Element for you

willow turtle
#

Could you please provide me a code sample? Do we have any documentations in Stripe website for this?

abstract wigeon
#

Well let's back up

#

What are you trying to do exactly?

#

Are you just starting on a new integration?

willow turtle
#

Yes, new integration

#

in my website

#

want to enable card payment option from my payment form.

abstract wigeon
#

And you are okay redirecting to a payment form or you want it embedded in your site?

willow turtle
#

embedded in my site

abstract wigeon
willow turtle
#

Thanks a lot