Closed rdpeake closed 6 years ago
This is apparently fixed in branch 0.3.0. The problem is this package version is not available in the NPM repository. 'npm view ngx-stripe versions' show the latest version available is 0.2.3 @richnologies Could you please make the latest version available in NPM. Thanks.
@lujakob just bind this to the callback
ex.
this.card.on('change', this.onChange.bind(this));
...
onChange(event) {
console.log(event)
}
@smlee Awesome, that works! Thanks.
Element on footprint should be
on(ev: ElementEventType, handler: (event?: any) => void): void;
as stripe documentation indicates that a parameter is passed to the handler for some of the events.