Order Doesn't Appear In Order Dashboard although payment has been made successfully on paypal

I have created custom page for my products where i have used smart paypal button for direct payment.

But as I have tested the page on live environment button working fine payment has been made successful but not redirecting to Shopify thnak you page and most terrifying issue was that orders are not recording in dashboard.

Please I need help :folded_hands: on this.

Is there any way we can resolve by modifying the paypal script so we can redirect it to thank you page and record order to order dashboard