An embedded checkout allows the PartPay checkout to be hosted within an iframe on the merchant’s web site, rather than being redirected to PartPay. This is a similar concept to the lightbox checkout.
iframe src attribute
After creating an order via the create order endpoint, append &embedded=true to the
redirectUrl property and set the src attribute of the iframe to the url
Example iframe element:
<iframe src="https://checkout.partpay.co.nz?token=ae59b28b-81dc-40de-b51a-e915ed87b381&embedded=true" style="width:600px;height:700px"></iframe>
NB: You will have to detect changes to the src attribute to detect when the checkout process has been completed.