Prerequisites
What you need before you start
Values provided by Agoda during onboarding
- CDN URL for Partner-SDK (
partner.js) - Environment configuration parameters
siteIdpartnerName(Optional in case PAN tokenization is not required. Mandatory in case PAN tokenization is required)
- CSP allowlist domains
- Agoda SDK CDN domain(s)
- Fraud service provider endpoints
- Analytics endpoints (e.g., Bento), if applicable
- Card-tokenization endpoint (optional)
Your own required capability
- Ability to update your Content Security Policy (CSP). This includes allowing scripts and assets to load from our CDN and communicating with the required API endpoints.
- Ability to modify frontend code to initialize Partner-SDK and generate
sdk_context_tokenduring checkout. - Ability to securely pass
sdk_context_tokenfrom the browser to your backend without modifying it. - Ability to include the
sdk_context_tokenin your Book API request. - Ability to receive
statusTokenfrom your backend, pass it back to the customer’s browser, and invokewindow.partnerSDK.handleChallenge(statusToken)whenrequiredActionispayment_challengeandstatusis 202. - Ability to poll the Booking Status API until the booking reaches a terminal outcome.
Updated 14 days ago
Did this page help you?