payment with card to card
This commit is contained in:
@@ -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"] });
|
||||
|
||||
Reference in New Issue
Block a user