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.

iframe

<aside> ⚠️

This will only work in conjuction with a full API integration - for more information please see Chaiz API info

</aside>

URLs

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

Integration

Steps to add a Chaiz Payment Iframe:

  1. Add this tag to the page head to load the init script. It will add Chaiz to the global scope.
<script src="<https://uat.payment-iframe.chaiz.com/copart/payment-iframe-init.js>"></script>
  1. Call the 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);
  1. Call the mount method on the iframe instance and pass a config as argument.