Simple Order API

Add the JavaScript

Add Songbird.js to your checkout page and complete the additional steps:
  1. Configure it
    : create the configuration object and pass it to
    Cardinal.configure()
    .
  2. Listen for Events
    : subscribe to events with
    Cardinal.on()
    and set up callback functions for:
    • payments.setupComplete: this optional event triggers when the JavaScript successfully initializes, after calling
      Cardinal.setup()
      .
    • payments.validated: this event triggers when the transaction completes.
  3. Initialize it
    : call
    Cardinal.setup()
    to trigger and pass your JWT to the JavaScript for each transaction.
To complete these steps, see the JavaScript Documentation.