payment with card to card

This commit is contained in:
hamid zarghami
2026-06-15 12:18:25 +03:30
parent 1dd639c0b1
commit 22e443cf7b
7 changed files with 221 additions and 200 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ export const useConfirmOrder = () => {
});
};
export const useVerifyCashPayment = () => {
export const useVerifyPayment = () => {
const queryClient = useQueryClient();
return useMutation({
mutationFn: (paymentId: string) => api.verifyCashPayment(paymentId),
mutationFn: (paymentId: string) => api.verifyPayment(paymentId),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ["order"] });
queryClient.invalidateQueries({ queryKey: ["orders"] });