diff options
author | Mateja <mail@matejamaric.com> | 2021-07-27 18:32:14 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-07-27 18:32:14 +0200 |
commit | 306c59e56c5038d13f94b9477bcdd060ab282ee6 (patch) | |
tree | 29e4fb6aae725256033e271fbdbdc655a41938e7 /client | |
parent | 4999a967fd11db8e5142b0a14c0c3f37283290df (diff) | |
download | mevn-ecommerce-306c59e56c5038d13f94b9477bcdd060ab282ee6.tar.gz mevn-ecommerce-306c59e56c5038d13f94b9477bcdd060ab282ee6.zip |
Add API endpoint for paid orders.
Diffstat (limited to 'client')
-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)); } |