Client SideΒΆ

To start implementing Arrow, follow the steps below:

  1. Add Arrow Merchant Javascript to your website following the code below.

<!-- Arrow Merchant JS -->
<script type="text/javascript" src="https://shop.witharrow.co/cdn/arrow.js"></script>

<!-- jQuery Library . if already added dont add it again-->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
  1. Get the Order Token from the server-side. Look at Generating Token.

  2. Launch Arrow Checkout by calling the launchArrow() function with the generated token.

launchArrow("INSERT_TOKEN_HERE");