summaryrefslogtreecommitdiff
path: root/api/order.ts
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 12:26:46 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 12:26:46 +0100
commitf213dbaf806f6b614770efab5d1aa21d621cdcef (patch)
tree9b78f2b4fa2fdcb54e9d6a4d836fddd0deb1ea9d /api/order.ts
parent0fd3bf89c81a50573a78a16408af5af332a097c1 (diff)
Backend capture order returns 200 on success
Diffstat (limited to 'api/order.ts')
-rw-r--r--api/order.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/order.ts b/api/order.ts
index 25def6d..242f7c3 100644
--- a/api/order.ts
+++ b/api/order.ts
@@ -45,7 +45,7 @@ async function handlePatch(request: VercelRequest, response: VercelResponse) {
} else {
try {
const paypalResponse = await paypalCaptureOrder(id);
- response.status(201).json({
+ response.status(200).json({
orderId: paypalResponse.id,
paypalStatus: paypalResponse.status,
});