Skip to content

Commit

Permalink
Change HTTP method from GET to POST in captureOrder function
Browse files Browse the repository at this point in the history
  • Loading branch information
tortuvshin committed Feb 23, 2024
1 parent 5386de5 commit d9d4253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
});

Expand Down

0 comments on commit d9d4253

Please sign in to comment.