From 200d559250b43cebbd02f8c19e9438b64306923f Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Fri, 23 Aug 2024 07:28:14 +0530 Subject: [PATCH] Fix paypal error with trailing slash on capture URL --- templates/payment_setup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/payment_setup.html b/templates/payment_setup.html index 6983fd057..eb7afe8d9 100644 --- a/templates/payment_setup.html +++ b/templates/payment_setup.html @@ -133,7 +133,7 @@ async function onApprove(data, actions) { try { - const response = await fetch(`/__/paypal/orders/${data.orderID}/capture`, { + const response = await fetch(`/__/paypal/orders/${data.orderID}/capture/`, { method: "POST", headers: { "Content-Type": "application/json",