payment link chnage to new link
This commit is contained in:
@@ -49,7 +49,7 @@ export const HistoryTableRow: React.FC<
|
||||
const payment = useMutation({
|
||||
mutationKey: ['payment', item.order_id],
|
||||
mutationFn: ({ order_id }: { order_id: number }) =>
|
||||
apiRequest<{ payment_link: string }>('POST', links.payment(order_id)),
|
||||
apiRequest<{ payment_link: string }>('POST', links.demo_pay(order_id)),
|
||||
onSuccess: (res) => {
|
||||
window.open(res.data.payment_link, '_self');
|
||||
setIsPaymentOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user