diff --git a/package.json b/package.json index db00906..a2a7b40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/storefront", - "version": "1.1.7", + "version": "1.1.8", "description": "Fleetbase Storefront JS & Node SDK", "main": "dist/cjs/storefront.js", "module": "dist/esm/storefront.js", diff --git a/src/resources/checkout.js b/src/resources/checkout.js index f3edfb0..1d166f6 100644 --- a/src/resources/checkout.js +++ b/src/resources/checkout.js @@ -28,7 +28,7 @@ const checkoutActions = new StoreActions({ }, captureOrder: function (token, transactionDetails = {}, options = {}) { - return this.adapter.get(`${this.namespace}/capture`, { token, transactionDetails }, options).then((orderJson) => new Order(orderJson)); + return this.adapter.post(`${this.namespace}/capture`, { token, transactionDetails }, options).then((orderJson) => new Order(orderJson)); }, });