API Documentation & SDKs
Configuring Allowed Payment Methods
The Allowed Payment Methods feature enables you to control which payment options are available to your customers during checkout. This configuration works for both one-time payments and subscriptions.
Overview
By specifying allowed payment methods, you can:
- Control which payment options appear to customers
- Restrict payment methods based on your business requirements
- Maintain consistency across different payment flows
- Optimize checkout experience for your target audience
Implementation
Basic Usage
Include the allowed_payment_method_types
field in your API requests to specify which payment methods should be available:
API Endpoints
This configuration can be used with:
- POST /payments - For one-time payments
- POST /subscriptions - For subscription payments
Implementation Examples
Basic Payment Request
Subscription Request
Important Considerations
Availability Factors
Payment method availability depends on multiple factors:
- Customer Location: Some payment methods are region-specific
- Merchant Settings: Your account configuration and capabilities
- Currency: Supported payment methods vary by currency
- Transaction Type: Some methods may not support all transaction types
Best Practices
-
Default Behavior
- If
allowed_payment_method_types
is not specified, all eligible payment methods will be available - Only specify this field when you need to restrict payment methods
- If
-
Regional Considerations
- Consider your target market when selecting payment methods
- Include region-specific payment methods for better conversion rates
-
Testing
- Test payment method availability in different regions
- Verify behavior with various customer profiles
-
Monitoring
- Track which payment methods are most used
- Adjust allowed methods based on customer preferences
Limitations
- Payment methods not included in the list will never appear to customers
- Adding a payment method to the list doesn’t guarantee its availability
- Some payment methods may require additional setup or verification
Troubleshooting
Common Issues
-
Payment Method Not Appearing
- Verify the payment method is correctly listed in
allowed_payment_method_types
- Check if the payment method is supported for the customer’s location
- Confirm the payment method is enabled in your merchant settings
- Verify the payment method is correctly listed in
-
Unexpected Payment Methods
- Review your
allowed_payment_method_types
configuration - Check if the field is being properly passed in API requests
- Verify there are no conflicting configurations
- Review your
Support
If you encounter issues with payment method configuration:
- Review the API Reference
- Check your merchant dashboard settings
- Contact DodoPayments Support for assistance