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