Technical Requirements
Technical specifications for proper Phoenix integration
Overview
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.
Iframe Requirements
Iframe dimensions: Must be exactly 350px × 600px
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.
Security Requirements
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:
Parameter Requirements
Required parameters: Both wallet address and amount must be provided
The Phoenix payment iframe requires the following parameters:
Required Parameters
- address: A valid Ethereum wallet address
- amount: A valid USD amount (numeric value)
Optional Parameters
- theme: The UI theme to use. Can be either ‘light’ or ‘dark’
Browser Requirements
Phoenix works with modern browsers including:
- Chrome 85+
- Firefox 80+
- Safari 14+
- Edge 85+
Network Requirements
Your application should be served over HTTPS to ensure secure communication with the Phoenix payment iframe.
Production Deployment
Always use the production URL for the Phoenix payment service in your production environment.
In development environments, you may use a staging URL provided by the Phoenix team. For production, always use:
Testing Your Integration
Before going live, we recommend testing your integration with the following scenarios:
- Bank connection flow: Test the bank connection process
- Transaction flow: Complete a payment from end to end with the transaction success message
- Order tracking: Verify that order details are properly captured for record-keeping
- Parameter validation: Test with invalid parameters to ensure proper error handling
- Message handling: Ensure proper handling of all message types
- Security validation: Verify message origin validation
Support
For technical assistance with your integration, contact Phoenix support at main@phoenix.market