Url for a Records Payment Gateway page

Url for a Records Payment Gateway page

Hi

Is it possible to write code that will fetch the exact url for a particular records payment page?

So for example this here:


I would like to use it so that I can send it to the customer if they exit out of the page before making payment or if their payment fails. That way when they make payment it will automatically update the existing record that they had already previously created.

Thanks!