Prerequisites

What you need before you start

Values provided by Agoda during onboarding

  • CDN URL for partner.js
  • Environment configuration (any required identifiers / keys)
  • CSP allowlist domains
    • Agoda SDK CDN domain(s)
    • Fraud vendor endpoints (e.g., Riskified)
    • Analytics endpoints (e.g., Bento), if applicable

Your own required capability

  • Ability to update your Content Security Policy (CSP). This includes adding <meta> tags or modifying HTTP response headers to allow scripts and assets to load from our CDN and API endpoints.
  • Ability to modify the application code to manually trigger the init() method (to instantiate the SDK) and the checkout() method (to receive verification token from SDK) based on specific user actions or page events.
  • Ability to pass the generated token from the frontend to the backend.
  • Ability to include the token + customer IP address in your Affiliate Book API request.