Skip to content

Commit

Permalink
payment intent api update
Browse files Browse the repository at this point in the history
  • Loading branch information
khwaleed96 committed Aug 29, 2023
1 parent 4491dbe commit 0c6912e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
40 changes: 23 additions & 17 deletions API/Payment/Payment.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
const Request = require('../../Request');
const Request = require("../../Request");

module.exports = {
// Get Payment Modes
getPaymentModes(payload) {
const url = `/store/v1/payment/payment-mode/tenant/client`
return Request.get(`${url}`, { params: { ...payload } })
},
// Get Payment Modes
getPaymentModes(payload) {
const url = `/store/v1/payment/payment-mode/tenant/client`;
return Request.get(`${url}`, { params: { ...payload } });
},

// Create Paymemt
createPayment(method, payload) {
const url = `/store/v1/payment/pg/callback/${method}`
return Request.get(`${url}`, { params: { ...payload } })
},
// Create Paymemt
createPayment(method, payload) {
const url = `/store/v1/payment/pg/callback/${method}`;
return Request.get(`${url}`, { params: { ...payload } });
},

// Payment Intent
createPaymentIntent(pg_mode, payload) {
const url = `/store/v1/payment/pg/paymentIntent/${pg_mode}`
return Request.post(`${url}`, payload)
},
}
// Create Payment Intent
createPaymentIntent(pg_mode, payload) {
const url = `/store/v1/payment/pg/paymentIntent/${pg_mode}`;
return Request.post(`${url}`, payload);
},

// Get Payment Intent
getPaymentIntent(pg_mode) {
const url = `/store/v1/payment/pg/paymentIntent/${pg_mode}`;
return Request.get(`${url}`);
},
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.52"
}
"version": "1.0.53"
}

0 comments on commit 0c6912e

Please sign in to comment.