diff --git a/routers/paypal.py b/routers/paypal.py index 797812fae..81e2384a9 100644 --- a/routers/paypal.py +++ b/routers/paypal.py @@ -148,7 +148,7 @@ def create_subscription(request: Request, payload: dict = fastapi_request_json): # Capture payment for the created order to complete the transaction. # @see https://developer.paypal.com/docs/api/orders/v2/#orders_capture -@router.post("/__/paypal/orders/{order_id}/capture/") +@router.post("/__/paypal/orders/{order_id}/capture") def capture_order(order_id: str): response = requests.post( str(furl(settings.PAYPAL_BASE) / f"v2/checkout/orders/{order_id}/capture"),