#Shrey071222

1 messages · Page 1 of 1 (latest)

humble juniperBOT
jaunty wharf
#

hello! reading through the previous thread, gimme a while

jade cipher
#

ok

jaunty wharf
#

that type package that you imported is a third party type package which isn't by Stripe and I wouldn't recommend using it. It's probably missing type definitions considering it hasn't been updated for quite a while.

you should use the typescript declarations from : https://www.npmjs.com/package/@stripe/stripe-js

jade cipher
#

So I have to do code changes or just updating a poackage will work?

#

How I will be able to get elements?

jaunty wharf
#

i've never used that third party typescript package before so i don't know the extent of the changes you have to make with your code after switching to our package.

you can see under the usage section how you can load stripe.js and use the Stripe object. The methods are still the same

humble juniperBOT
jade cipher
#

How can I use @stripe/stripe.js package to use Payment element on Angular?