feat: похуйу

This commit is contained in:
2026-05-12 23:31:10 +03:00
parent d6345ee0d2
commit b7900fcdf3
7 changed files with 107 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
import { useMutation } from '@tanstack/react-query'
import { createOrder } from '../api/paymentApi'
export function useCreateOrder() {
return useMutation({
mutationFn: createOrder,
onSuccess: (data) => {
const url = data.order.itpay_payment_qr_url_desktop
if (url) window.location.href = url
},
})
}