Currency
Overview
The currency parameter specifies the currency to be used for the player’s transactions in the game. GPAS supports multiple currencies to accommodate players from different regions.
Supported Currencies
The following table lists the currencies supported by the GPAS system:
| Id | Currency |
|---|---|
| BRL | Brazilian Real |
| USD | US Dollar |
| EUR | Euro |
| MXN | Mexican Peso |
| CLP | Chilean Peso |
| PYG | Paraguayan Guarani |
Implementation
When implementing currency support:
- Include the currency parameter in the game launcher URL as a query string parameter
- Use the currency ID (e.g., “USD”) rather than the full name
- Ensure that the currency is supported by both the operator’s system and the game provider
- Implement proper error handling for unsupported currencies
Example
https://subdomain.example.com/launcher/game/?authToken=abc123&walletId=wallet123¤cy=USDCurrency Conversion
If your system supports multiple currencies:
- Ensure that the player’s wallet currency matches the currency specified in the game launcher
- If conversion is necessary, implement a clear and transparent conversion mechanism
- Display the conversion rate to the player
- Ensure that all transaction amounts are correctly converted
Display Considerations
When displaying currency information:
- Use the appropriate currency symbol (e.g., $, €, R$)
- Format numbers according to the currency’s standard (e.g., decimal places, thousands separators)
- Display the currency code alongside the amount for clarity
- Consider localization requirements for different regions
Error Handling
Implement proper error handling for currency-related issues:
- Unsupported currency
- Currency mismatch between wallet and game
- Conversion errors
- Display formatting errors