Closed BerglundDaniel closed 8 months ago
The recent updates involve a significant overhaul of the Stripe integration within the API. The handling of Stripe keys has been enhanced with new checks and configurations for live and test environments. The Stripe constants and integration logic have been streamlined, with obsolete code removed. The testing suite has been updated to ensure the secure handling of Stripe keys, preventing the accidental use of live keys during tests.
File(s) | Change Summary |
---|---|
api/src/api.py |
Included new imports for debug_mode and Stripe key status, and added conditional logic for Stripe key setup. |
api/src/shop/stripe_constants.py |
Removed Stripe imports, assignments, and the set_stripe_key function, indicating a Stripe integration rework. |
api/src/shop/stripe_setup.py |
Refactored setup_stripe_products , added are_stripe_keys_set and are_stripe_keys_live , modified setup_stripe to accept a mode parameter. |
api/src/shop/test/... api/src/test_aid/... |
Updated import and usage of STRIPE_PRIVATE_KEY from test_aid.systest_config across various test files, ensuring secure key handling and preventing live key usage in tests. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor
Tests
Bug Fixes