diff --git a/video-gen-api/app/services/payment.py b/video-gen-api/app/services/payment.py index 4fd4fab0..e7ae7f75 100644 --- a/video-gen-api/app/services/payment.py +++ b/video-gen-api/app/services/payment.py @@ -1,6 +1,5 @@ import logging import os -import certifi from datetime import datetime, timedelta from sqlalchemy import select @@ -157,8 +156,8 @@ def _get_alipay_client(app_id: str, private_key: str, public_key: str, gateway: config.alipay_public_key = public_key config.sign_type = "RSA2" config.charset = "utf-8" - config.cert_path = certifi.where() - + config.charset = "utf-8" + logger.info(f"Initializing Alipay client: {config}") try: _alipay_client = DefaultAlipayClient(config) _alipay_client_app_id = app_id