Skip to content

Conversation

@janicduplessis
Copy link
Collaborator

Summary

When initializing the app via StripeProvider we never end up registering the headless task. To fix it I changed the Provider to call initStripe so we now have only one initialization code path. I also added a check to make sure the task only gets registered once, as I assume it could happen that multiple StripeProvider are rendered.

Motivation

Task should be registered when using StripeProvider

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

await NativeStripeSdk.initialise({
await initStripe({
publishableKey,
appInfo,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App info is added by initStripe already.

@janicduplessis janicduplessis merged commit d8cbe4f into stripe:master Sep 23, 2025
35 of 38 checks passed
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

Successfully merging this pull request may close these issues.

2 participants