aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-27 18:32:14 +0200
committerMateja <mail@matejamaric.com>2021-07-27 18:32:14 +0200
commit306c59e56c5038d13f94b9477bcdd060ab282ee6 (patch)
tree29e4fb6aae725256033e271fbdbdc655a41938e7 /client/src
parent4999a967fd11db8e5142b0a14c0c3f37283290df (diff)
downloadmevn-ecommerce-306c59e56c5038d13f94b9477bcdd060ab282ee6.tar.gz
mevn-ecommerce-306c59e56c5038d13f94b9477bcdd060ab282ee6.zip
Add API endpoint for paid orders.
Diffstat (limited to 'client/src')
-rw-r--r--client/src/store/index.js4
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));
}