The native SDKs provide a convenient way to retrieve available payment options for your checkout. This allows you to display all payment methods that are available for the transaction to your users.Documentation Index
Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
Use this file to discover all available pages before exploring further.
Use cases
List payment options to:- Display available payment methods at checkout
- Filter payment options based on merchant, country, currency, and amount
- Determine which payment methods to present to your customer
- Implement dynamic payment method selection UI
Implementation
Create a request with your checkout details and retrieve available payment options.Best practices
- Cache results: Store payment options locally to reduce API calls when the country, currency, and amount haven’t changed.
- Error handling: Always handle network and HTTP errors gracefully and show appropriate messages to users.
- Timeout configuration: Use custom timeouts for payment options requests if your network conditions require it.
- Localization: Use the appropriate locale to ensure payment option labels are displayed in the correct language.