#eskimo - token

1 messages · Page 1 of 1 (latest)

thick hawk
#

Hi there. So with v3, we pivoted to Elements, which essentially just are Stripe-built forms used to collect payment method details. This handles all PCI compliance concerns. Also, with the newer pattern, we recommend using Payment Methods instead of tokens: https://stripe.com/docs/payments/payment-methods

Learn more about the API that powers a range of global payment methods.

#

You would just pass the element in

#

Which is the object of the form used to collect card details

pearl minnow
#

So I can't use my own forms anymore?

thick hawk
#

Let me check with a colleague the best way to do this if you use your own forms. It may have to be done on the backend

pearl minnow
#

How long will v2 work for?

#

I can just use that like I do with my other sites?

thick hawk
#

You can continue to use v2, we don't currently have a date for deprecating it so it will not be soon. If/when we do decide it will be deprecated, we will proactively reach out about it and you will have plenty of time to switch off of it

pearl minnow
#

Ok, did you find out about using my own form?

#

For consistency of design I'd prefer to use my own

thick hawk
#

v3 is built around Elements as which has lower PCI requirements than v2 and handling the card details directly which has higher requirements. So, it's recommended to go with Elements. There's still plenty of room to have a custom payments form with Elements, as you can use "split" Elements (which is combining the different types of Elements). We talk about that a bit on this page: https://stripe.com/docs/payments/payment-card-element-comparison. It is possible to have your own form, but the PCI compliance requirements are strict on that (you would be passing the PAN to your backend for processing). So we couldn't advise on how to achieve that properly (it would be up to you to obey all regulations on that). We built Elements to eliminate the woes of PCI compliance

pearl minnow
#

PAN?

thick hawk
#

ah that just means card number

pearl minnow
#

Using my own form doesn't require that?

#

That's the point of the tokens?

thick hawk
#

Yeah unfortunately v3 doesn't support tokenization in the same way v2 does

pearl minnow
#

Man that's a huge downgrade

#

What a mess

#

I'll use v2

#

Thanks

mild remnant
pearl minnow
#

It's still a mess

#

Having to do an api call to my server to create a "setup intent" is stupid

mild remnant
#

You can also create tokens/PaymentMethods directly with that. SetupIntents are very helpful for managing state and things like 3DS though

pearl minnow
#

Oh?

#

Whoever writes these docs needs a new job

#

So bloated and they basically miss all the important points

mild remnant
pearl minnow
#

Ok, but with the elements thing, how do I do the html?

#

I don't get it

mild remnant
pearl minnow
#

Oh I see

#

So you make an element then "mount" it to a div id

#

Got it

#

Ok, I'll give this a shot, maybe it's not so bad

#

But then I can still attach the token to a customer for future use?

mild remnant
#

Yep yep, same Token as always

pearl minnow
#

Ok, this seems alright then. Thanks.

mild remnant
#

Of course, glad v3 can help you here

pearl minnow
#

I still kinda see it as a downgrade 😛