I’m happy to share that code with anyone who is interested.
I’ve hit a small issue that is the invoice currency not getting passed to the custom checkout. The error is
?TypeError: Cannot read property 'currency' of undefined at createPaymentRequest (?publicToken=xxxx:41) at HTMLDocument.<anonymous> (?publicToken=xxxx:19)
Can anyone shed any light on this api issue?