To ensure a successful integration with Phoenix, please adhere to the following technical requirements. These specifications are designed to provide optimal user experience and security.
The Phoenix payment interface is designed for these specific dimensions. Using different dimensions may result in a poor user experience with content being cut off or unnecessarily spaced out.
Origin validation: Always verify message origins for security
When receiving messages from the Phoenix iframe, always validate the origin to prevent cross-site scripting attacks:
Copy
window.addEventListener('message', function(event) { // IMPORTANT: Verify origin for security if (event.origin !== 'https://app-partner.phoenix.market') return; // Process the message only if origin is valid // ...});