Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after update to version 2.1.0 #38

Open
allancmello opened this issue Jun 2, 2023 · 1 comment
Open

Error after update to version 2.1.0 #38

allancmello opened this issue Jun 2, 2023 · 1 comment

Comments

@allancmello
Copy link
Contributor

allancmello commented Jun 2, 2023

Error initializing a Stripe.presentPaymentSheet() using @capacitor-community/stripe version 4.2.2 with stripe-pwa-elements.

Erro: TypeError: Cannot read properties of null (reading 'addEventListener')
at index.js:4094:20
at new ZoneAwarePromise (zone.js:1429:21)
at index.js:4092:12
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:22:1)
at asyncToGenerator.js:27:1
at new ZoneAwarePromise (zone.js:1429:21)
at asyncToGenerator.js:19:1
at StripePaymentSheet$1.present (index.js:4098:8)

One question.
Before, the library used was @stripe-elements/stripe-elements, when clicking on its github address, we are directed to the stripe-pwa-elements github page, also authored by it.
Are they both the same library?

Stripe

@hideokamoto
Copy link
Contributor

@capacitor-community/stripe still using @stripe-elements/stripe-elements, so could you use it instead of stripe-pwa-elements?

https://github.com/capacitor-community/stripe/blob/master/package.json#L82

Those two packages are mostly the same.
Now we're working on renaming this project because of the avoiding confusion that the package name looks like a Stripe official one.

After ready to migrate, I will make a PR to the @capacitor-community/stripe to change the dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants