structure payment

This commit is contained in:
hamid zarghami
2026-02-24 11:47:57 +03:30
parent d65fa8cd2d
commit 7a34e74e02
5 changed files with 52 additions and 1 deletions
@@ -0,0 +1,13 @@
import axios from "@/config/axios";
import type { PayInvoiceParamsType } from "../types/Types";
export const payInvoice = async (
invoiceId: string,
params: PayInvoiceParamsType,
) => {
const { data } = await axios.post(
`/public/payments/invoice/${invoiceId}/pay`,
params,
);
return data;
};