- Combining the Authentication and the Authorization Services
- Implementing SDK Payer Authentication
- Testing Payer Authentication
- Payer Authentication Use Cases
On This Page
Simple Order API
Add the JavaScript
Add Songbird.js to your checkout page and complete the additional steps:
- Configure it: create the configuration object and pass it toCardinal.configure().
- Listen for Events: subscribe to events withCardinal.on()and set up callback functions for:
- payments.setupComplete: this optional event triggers when the JavaScript successfully initializes, after callingCardinal.setup().
- payments.validated: this event triggers when the transaction completes.
- Initialize it: callCardinal.setup()to trigger and pass your JWT to the JavaScript for each transaction.
To complete these steps, see the JavaScript Documentation.