This is a quick-start guide in addition to the entire API spec for the PlanSearch process, user creation, iframe integration, and the subsequent steps for successful order creation.
You must read through the API docs and refer back to them as they are the final source of truth.
<aside> ⚠️
This will only work in conjuction with a full API integration - for more information please see Chaiz API info
</aside>
UAT (mainly use this during your dev for a stable testing environment)
uat.payment-iframe.chaiz.com/copart/payment-iframe-init.js
QA (use this if we have specific changes for you, or to use latest)
dev.payment-iframe.chaiz.com/copart/payment-iframe-init.js
Steps to add a Chaiz Payment Iframe:
Chaiz to the global scope.<script src="<https://uat.payment-iframe.chaiz.com/copart/payment-iframe-init.js>"></script>
createPaymentIframe method and pass the access token (provided by us) as an argument. Returns an instance of the payment iframe.const iframe = Chaiz.createPaymentIframe(accessToken);
mount method on the iframe instance and pass a config as argument.