Describe the bug
The stripeService is called but in there the "stripe" object is undefined in the following function
redirectToCheckout(options) {
return this.stripe.redirectToCheckout(options);
}
core.mjs:6531 ERROR TypeError: Cannot read properties of undefined (reading 'redirectToCheckout')
at _StripeService.redirectToCheckout (ngx-stripe.mjs:656:24)
at subscription.component.ts:1457:37
at switchMap.js:14:23
at OperatorSubscriber2._this._next (OperatorSubscriber.js:15:21)
at Subscriber2.next (Subscriber.js:34:18)
at map.js:7:24
at OperatorSubscriber2._this._next (OperatorSubscriber.js:15:21)
at Subscriber2.next (Subscriber.js:34:18)
at filter.js:6:143
at OperatorSubscriber2._this._next (OperatorSubscriber.js:15:21)
Expected behavior
The redirection should have worked
Desktop (please complete the following information):
OS: MACOS 14.5 (23F79)
Browser Chrome
Version Version 127.0.6533.100 (Official Build) (arm64)
Describe the bug The stripeService is called but in there the "stripe" object is undefined in the following function redirectToCheckout(options) { return this.stripe.redirectToCheckout(options); }
To Reproduce Steps to reproduce the behavior:
Expected behavior The redirection should have worked
Desktop (please complete the following information):