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

[BUG] Unable to load connect account onboarding url returned from Stripe. #7888

Open
rajeshkhumanthem opened this issue Feb 6, 2024 · 1 comment
Labels

Comments

@rajeshkhumanthem
Copy link

Summary

Android App trying to open url returned from call to "https://api.stripe.com/v1/accounts" in a Webview fails. This is during a Connect account onboarding process.

Code to reproduce

Stacktrace from Chrome is given below:
Uncaught ReferenceError: globalThis is not defined
at getHostname (connect-flows.express_unified.023b9ffde252a582b993.min.js:5)
at isStripeInternalHostname (connect-flows.express_unified.023b9ffde252a582b993.min.js:5)
at isDevEnvironment (connect-flows.express_unified.023b9ffde252a582b993.min.js:5)
at getEnvironment (connect-flows.express_unified.023b9ffde252a582b993.min.js:5)
at Object. (connect-flows.express_unified.023b9ffde252a582b993.min.js:13)
at webpack_require (connect-flows.runtimeexpress_unified.2cf0bb060194f759fbd9.min.js:1)
at Object. (connect-flows.express_unified.023b9ffde252a582b993.min.js:14)
at webpack_require (connect-flows.runtime
express_unified.2cf0bb060194f759fbd9.min.js:1)
at Object. (connect-flows.express_unified.023b9ffde252a582b993.min.js:32)
at webpack_require (connect-flows.runtime~express_unified.2cf0bb060194f759fbd9.min.js:1)

It looks like it is looking for a variable that doesn't exist and crashes.

Android version

SDK Level 28

Impacted devices

Samsung S22 Android simulator running the above SDK.

Installation method

Android Studio Running on MacOS Sonoma 14.1.1

Dependency Versions

kotlin:
stripe-android:
Android Gradle Plugin:
Gradle:

SDK classes

SDK Level 28

Video

Other information

This issue is simple; a JS script (see name in the stack trace) is referencing a variable without checking if it exist first. Please see the stack trace above from Chrome debugger. It works fine with simulator running SDK Level 29.

@rajeshkhumanthem
Copy link
Author

Tested with SDK Level 29 and it works fine.

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

No branches or pull requests

1 participant