Running on an Angular 7 project with ngx-stripe version "^7.4.2".
What I'm trying to do:
Pass the client secret from a constructed PaymentIntent from my server along with the user's default payment source into "handleCardPayment()".
This means that I am passing in the secret, NO element, and the HandleCardPaymentOptions.
For some reason, the options object are being read-in as an "Element"
However, it does work if I call .stripe on the stripe service, so using "this.stripeService.stripe.handleCardPayment(secret, options)". This works as expected.
Is there a reason I can't pass in just the secret and the options when calling handleCardPayment() on the service? I'm unsure if this is intentional or a bug.
Running on an Angular 7 project with ngx-stripe version "^7.4.2".
What I'm trying to do: Pass the client secret from a constructed PaymentIntent from my server along with the user's default payment source into "handleCardPayment()". This means that I am passing in the secret, NO element, and the HandleCardPaymentOptions.
For some reason, the options object are being read-in as an "Element"
However, it does work if I call .stripe on the stripe service, so using "this.stripeService.stripe.handleCardPayment(secret, options)". This works as expected.
Is there a reason I can't pass in just the secret and the options when calling handleCardPayment() on the service? I'm unsure if this is intentional or a bug.
Thanks in advance!