-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4491dbe
commit 0c6912e
Showing
2 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters