From fee92199fa1102fd9878503e426ef55aca06819a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Dec 2025 14:46:17 +0800 Subject: [PATCH] bugfix --- unipay/notify.py | 4 ++-- unipay/providers/alipay.py | 2 +- unipay/providers/paypal.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unipay/notify.py b/unipay/notify.py index 2f75d08..1bf237d 100644 --- a/unipay/notify.py +++ b/unipay/notify.py @@ -1,7 +1,7 @@ # unipay/notify.py from typing import Dict from .providers.wechat import WechatGateway -from .providers.paypal import PayPalGateway +from .providers.paypal import PaypalGateway from .providers.alipay import AlipayGateway from .providers.stripe import StripeGateway @@ -20,7 +20,7 @@ def get_provider(name: str, conf: Dict): if name == "wechat": return WechatGateway(**conf) if name == "paypal": - return PayPalGateway(**conf) + return PaypalGateway(**conf) if name == "alipay": return AlipayGateway(**conf) if name == "stripe": diff --git a/unipay/providers/alipay.py b/unipay/providers/alipay.py index 525eb1f..2c3d5a7 100644 --- a/unipay/providers/alipay.py +++ b/unipay/providers/alipay.py @@ -17,7 +17,7 @@ from ..utils import safe_json_dumps ALIPAY_GATEWAY = "https://openapi.alipay.com/gateway.do" -class AlipayProvider(Gateway): +class AlipayGateway(Gateway): """ 生产级支付宝接口(H5 支付 / 退款 / 查询 / 回调验签) """ diff --git a/unipay/providers/paypal.py b/unipay/providers/paypal.py index e5dac87..0f51062 100644 --- a/unipay/providers/paypal.py +++ b/unipay/providers/paypal.py @@ -7,7 +7,7 @@ import os from ..core import Gateway, GatewayError from ..utils import safe_json_dumps -class PayPalGateway(Gateway): +class PaypalGateway(Gateway): def __init__(self, client_id: str, client_secret: str, sandbox: bool = True): self.client_id = client_id self.client_secret = client_secret