richnologies / ngx-stripe

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

paymentRequestButton #39

Closed akshayverma172 closed 4 years ago

akshayverma172 commented 6 years ago

Argument of type '"paymentRequestButton"' is not assignable to parameter of type 'ElementType'.

From your previous issue i tried that code but its not working anymore. Please can you have this fixed. Any help would be really appreciated.

Thanks

SUVOLewis commented 5 years ago

Still having this problem, did you ever solve it?

dottodot commented 5 years ago

Can you provide some more info such as which version you are using and your code so can we can have a look.

elucidsoft commented 4 years ago

I believe he is referring to this documentation here: https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-set-up-stripe-elements

When you call this.elements.create('paymentRequestButton', { <> });

You can't pass in the PaymentRequest to the options as it does not exist.

elucidsoft commented 4 years ago

I fixed this in PR https://github.com/richnologies/ngx-stripe/pull/87

richnologies commented 4 years ago

I will close this now due to inactivity. Sorry for this library to be abandon for such a long time. A new version of the library has been published that should address this issue. Please give it a try. If the problem persists, please fell free to open it again. The new commitment of the team is to answer in less than a week.