diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/store/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |