From 306c59e56c5038d13f94b9477bcdd060ab282ee6 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 27 Jul 2021 18:32:14 +0200 Subject: Add API endpoint for paid orders. --- client/src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/store') diff --git a/client/src/store/index.js b/client/src/store/index.js index 7c3d396..ff4648f 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -85,7 +85,7 @@ export default createStore({ const checkoutRequest = {items: context.state.cart}; const orderId = await axios - .post(`${process.env.VUE_APP_ROOT_API}/transaction/setup`, checkoutRequest) + .post(`${process.env.VUE_APP_ROOT_API}/transactions/setup`, checkoutRequest) .then(response => response.data.orderId) .catch(err => console.error(err)); @@ -93,7 +93,7 @@ export default createStore({ }, async captureOrder(context, orderId) { return await axios - .post(`${process.env.VUE_APP_ROOT_API}/transaction/capture`, {orderId}) + .post(`${process.env.VUE_APP_ROOT_API}/transactions/capture`, {orderId}) .then(() => true) .catch(err => console.error(err)); } -- cgit v1.2.3