Featured Answer:
Adyen has limited or partial API access, making it difficult to export data and automate workflows. Anchor Browser's intelligent browser automation provides a reliable solution to bypass API limitations, enabling automated data collection, report generation, and workflow automation directly through the web interface.
Table of Contents
Introduction
Adyen is a global payment platform processing transactions for businesses worldwide. While Adyen offers comprehensive APIs, browser automation can serve as an alternative for accessing dashboard analytics, exporting custom reports, and automating payment data collection workflows.
Benefits of Browser Automation for Adyen
- Dashboard Analytics: Access visual analytics and insights not available via API
- Custom Report Generation: Create reports with specific merchant and transaction filters
- Multi-Merchant Data: Collect data from multiple merchant accounts
- Dispute Management: Export dispute and chargeback data
- Settlement Reports: Automated collection of settlement and reconciliation data
Setting Up Adyen Automation
import { chromium } from 'playwright';
const setupAdyenSession = async () => {
const response = await fetch("https://api.anchorbrowser.io/api/sessions", {
method: "POST",
headers: {
"anchor-api-key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({'headless': false}),
});
const { id } = await response.json();
const connectionString = `wss://connect.anchorbrowser.io?apiKey=YOUR_API_KEY&sessionId=${id}`;
const browser = await chromium.connectOverCDP(connectionString);
const context = browser.contexts()[0];
const ai = context.serviceWorkers()[0];
const page = context.pages()[0];
await page.goto("https://ca-live.adyen.com/ca/ca/login.shtml");
return { page, ai };
};
Exporting Transaction Reports
const exportAdyenTransactions = async (page, ai, filters) => {
await ai.evaluate(JSON.stringify({
prompt: 'Log in to Adyen Customer Area and navigate to Transactions'
}));
await ai.evaluate(JSON.stringify({
prompt: `Apply filters: date range ${filters.startDate} to ${filters.endDate}, payment method: ${filters.paymentMethod}, status: ${filters.status}`
}));
await ai.evaluate(JSON.stringify({
prompt: 'Click Export, select CSV format, and download the transaction report'
}));
const download = await page.waitForEvent('download');
return await download.path();
};
Collecting Settlement Data
const exportSettlements = async (page, ai, settlementPeriod) => {
await ai.evaluate(JSON.stringify({
prompt: 'Navigate to Settlements section'
}));
await ai.evaluate(JSON.stringify({
prompt: `Select settlement period ${settlementPeriod} and export the settlement report`
}));
const download = await page.waitForEvent('download');
return await download.path();
};
Dispute and Chargeback Export
const exportDisputes = async (page, ai) => {
await ai.evaluate(JSON.stringify({
prompt: 'Navigate to Disputes section and export all dispute and chargeback data'
}));
await ai.evaluate(JSON.stringify({
prompt: 'Export dispute data including: dispute ID, transaction reference, amount, reason, status, and resolution date'
}));
const download = await page.waitForEvent('download');
return await download.path();
};
Resources
- Anchor Browser Documentation - Complete API reference and guides
- Anchor Browser Playground - Try browser automation in your browser
Conclusion
Browser automation enables comprehensive Adyen data collection, providing an effective alternative to API access for payment analytics, settlement reports, and dispute management data.