Closed BerglundDaniel closed 7 months ago
The recent updates introduce a retry mechanism for Stripe API calls across various modules in the codebase. This enhancement is aimed at improving the robustness of interactions with Stripe services by attempting failed operations more than once. The retry functionality is incorporated into API calls for charging customers, handling events, managing payment intents, and deleting Stripe customers. Additionally, the test suite reflects changes in product and price synchronization functions and incorporates the retry strategy for creating payment methods.
File(s) | Change Summary |
---|---|
.../shop/pay.py .../shop/stripe_charge.py .../shop/stripe_event.py .../shop/stripe_payment_intent.py |
Introduced retry function from stripe_util for Stripe API calls. |
.../shop/stripe_customer.py |
Added retry mechanism to delete_stripe_customer function. |
.../shop/test/stripe_product_price_test.py |
Updated product and price functions to get_and_sync versions and added activate_stripe_product call in tests. |
.../systest/api/register_test.py |
Implemented retry mechanism for creating payment methods 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