#Gajendra.kumar-acss

1 messages · Page 1 of 1 (latest)

forest quartz
#

@gentle knoll note that your message above has your real email address in it and this a public server — you likely want to delete/edit the message

#

what angular library exactly are you using?

gentle knoll
#

thank you for email information.

#

I am using Angular 8

#

but getting Property 'confirmAcssDebitPayment' does not exist on type 'Stripe'. Did you mean 'confirmSepaDebitPayment'?

#

error

forest quartz
#

I know yes, you said that.

#

what library are you using for Stripe specifically?

#

we don't have an Angular library so you must be using some specific third party library for Stripe.

#

my guess is it is out of date and needs to be updated

gentle knoll
forest quartz
#

hmm that function definitely exists though( as I linked above). So not sure what you would get this error.

#

can you show me how you initialise that stripe variable in your code?

gentle knoll
#

var stripe = Stripe('pk_test_key');

#

and other method like confirmCardPayment, confirmSepaDebitPayment and move available with this variable

forest quartz
#

hmm, that's really strange

#

do you have a link to your page where you're having this issue so I can check it in my own browser?

#

ah ok. Is this just a Typescript error?

gentle knoll
#

actually it is on my local machine so

forest quartz
#

if so you are probably using an old version of the types

#

what binding do you use for the types?

gentle knoll
#

I am using typescript 3.4.5

forest quartz
#

no I mean, where do you get the types for stripe.js from?

gentle knoll
#

I have used npm install --save @types/stripe-v3

forest quartz
#

I'd suggest updating it to the latest version then!

#

actually that package looks out of date(it's third party)

gentle knoll
#

npm install @stripe/stripe-js

forest quartz
#

you should use our official ones linked above ; or you should disable Typescript checking on that line

gentle knoll
#

so I use this one

forest quartz
#

I think so!

gentle knoll
#

ok let me try with this

gentle knoll
#

Yes error is not coming now