Skip to content

Commit

Permalink
fix trailing slash in paypal webhook route
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Aug 23, 2024
1 parent 8f8206b commit a70495a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/paypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a70495a

Please sign in to comment.