richnologies / ngx-stripe

Angular 6+ wrapper for StripeJS
MIT License
217 stars 77 forks source link

[BUG] Module '"ngx-stripe"' has no exported member 'provideNgxStripe'. #220

Closed german-e-mas closed 1 year ago

german-e-mas commented 1 year ago

I'm trying to setup ngx-stripe using bootstrapApplication but I cannot use the provideNgxStripe method, as it is not exported.

I'm using node v18.16.0 and npm i ngx-stripe installed 16.1.2.

The installed version does not include an export of provideNgxStripe.


The docs mention the provide function, and I see it exported correctly in the public api of the main branch.

Has this not yet been released? If so, when do you think it's going to be released?

In the meantime, how can I use the existing NgxStripeModule alongside bootstrapApplication?

german-e-mas commented 1 year ago

Just in case, using importProvidersFrom(NgxStripeModule.forRoot(STRIPE_PUBLIC_KEY)) seems to do the trick.

richnologies commented 1 year ago

Hey @german-e-mas, sorry, my fault, I've been very busy this last couple of weeks.

I now version has been release 16.2.0 that should include the method.

Please let me know if that works for you

german-e-mas commented 1 year ago

Thank you for the quick response @richnologies !! I installed 16.2.0 and the provideNgxStripe function is exported and working as intended.