I have been able to develop a module that redirects customers to payment gateway(external url) after the PlaceOrder button is clicked. After transaction is completed on the payment gateway, I redirect to a controller on Magento and this allows me to get the transaction status and safe to a custom table. After saving, I redirect to checkout_onepage_success.xml
and included my template="Vendor_Module::checkout/success.phtml" but I keep getting an error -
1 exception(s): Exception #0 (Magento\Framework\Exception\InputException): Id required