summaryrefslogtreecommitdiff
path: root/api/createPaypalOrder.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/createPaypalOrder.js')
-rw-r--r--api/createPaypalOrder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/createPaypalOrder.js b/api/createPaypalOrder.js
index d477371..0c85151 100644
--- a/api/createPaypalOrder.js
+++ b/api/createPaypalOrder.js
@@ -64,7 +64,7 @@ function handler(request, response) {
return [4 /*yield*/, (0, _paypal_1.paypalCreateOrder)({ productDescription: productDescription, shortDescription: shortDescription, totalPrice: totalPrice })];
case 4:
paypalResponse = _b.sent();
- response.status(200).json({
+ response.status(201).json({
orderId: paypalResponse.id,
});
return [3 /*break*/, 6];