From a70495ab35b0f885e8ec6324870fe37769d08b80 Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Fri, 23 Aug 2024 07:24:36 +0530 Subject: [PATCH] fix trailing slash in paypal webhook route --- routers/paypal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"),