Skip to content

Enhance Polar integration with improved subscription handling and env…#357

Merged
Stivenjs merged 2 commits into
mainfrom
cli
Oct 16, 2025
Merged

Enhance Polar integration with improved subscription handling and env…#357
Stivenjs merged 2 commits into
mainfrom
cli

Conversation

@Stivenjs
Copy link
Copy Markdown
Contributor

…ironment configuration

This commit introduces several enhancements to the Polar integration, including the addition of new environment variables in the AWS Amplify configuration for better management of sensitive data. It also refines the subscription handling logic by validating required fields during subscription creation and updating, ensuring robust error handling. Furthermore, new methods are added to check for subscription cancellation statuses, and the webhook processing logic is improved to handle payload validation more effectively. These changes aim to streamline interactions with the Polar API and enhance overall system reliability.

…ironment configuration

This commit introduces several enhancements to the Polar integration, including the addition of new environment variables in the AWS Amplify configuration for better management of sensitive data. It also refines the subscription handling logic by validating required fields during subscription creation and updating, ensuring robust error handling. Furthermore, new methods are added to check for subscription cancellation statuses, and the webhook processing logic is improved to handle payload validation more effectively. These changes aim to streamline interactions with the Polar API and enhance overall system reliability.
@Stivenjs Stivenjs self-assigned this Oct 16, 2025
@Stivenjs Stivenjs added enhancement New feature or request good first issue Good for newcomers invalid This doesn't seem right javascript Pull requests that update javascript code labels Oct 16, 2025
This commit updates the PolarService unit tests to use type casting for the `process.env` object when setting environment variables. This change ensures compatibility with TypeScript and improves the clarity of the test setup, maintaining the integrity of the testing environment for both development and production scenarios.
@Stivenjs Stivenjs merged commit 6ac973f into main Oct 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers invalid This doesn't seem right javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant