Partner-SDK Integration
This document provides steps on how to integrate Partner-SDK (artifact : partner.js) in partner’s web components.
Overview
The Agoda Affiliate Frontend Component (partner.js) is a JavaScript provided by Agoda to enable partners to enrich the booking flow with frontend signal capture for fraud analysis and risk assessment.
When integrated into your website, partner.js initializes a session with Fraud detection service. Immediately before you submit a booking, your checkout flow must invoke the SDK to generate a verification token (also referred to as a booking context token) derived from the captured session context. This token must then be:
- forwarded from your frontend to your backend, and
- included in the Book API request payload.
This guide explains what partner.js does and how it fits into your booking flow. Detailed integration steps, API reference, and troubleshooting guidance are provided in subsequent sections.
Updated 27 days ago