fix(medusa-payment-stripe): api endpoint for getStripePayments (#4928)
fixes https://github.com/medusajs/medusa/issues/4927 Co-authored-by: zulian-coconutlab <73976574+zulian-coconutlab@users.noreply.github.com>
This commit is contained in:
co-authored by
zulian-coconutlab
parent
ddc882faac
commit
c348263fdb
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"medusa-payment-stripe": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-payment-stripe): api endpoint for getStripePayments
|
||||||
@@ -22,11 +22,11 @@ export default (rootDirectory) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
`/admin/orders/stripe-payments/:id`,
|
`/admin/orders/stripe-payments/:order_id`,
|
||||||
cors(corsOptions),
|
cors(corsOptions),
|
||||||
authenticate()
|
authenticate()
|
||||||
)
|
)
|
||||||
app.get(`/admin/orders/stripe-payments/:id`, async (req, res) => {
|
app.get(`/admin/orders/stripe-payments/:order_id`, async (req, res) => {
|
||||||
const payments = await getStripePayments(req)
|
const payments = await getStripePayments(req)
|
||||||
res.json({ payments })
|
res.json({ payments })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user