paymentProvider/configuration.json file. This file defines which payment methods your connector supports and what configuration fields are required.
Configuration file structure
ThepaymentProvider/configuration.json file has three main sections:
paymentProvider/configuration.json
Payment methods configuration
ThepaymentMethods array defines which payment methods your connector supports.
Basic payment method structure
Each payment method requires:- name: The payment method identifier
- allowsSplit: When split payments are allowed
Split payment options
TheallowsSplit field determines when split payments (for marketplace scenarios) are allowed:
onCapture
onCapture
Split is calculated at capture/settlement time:
- Used for most credit card payments
- Split amount determined when payment is settled
- Most common option for card-based payments
onAuthorize
onAuthorize
disabled
disabled
Split payments are not supported:
- Use when your payment gateway doesn’t support splits
- Marketplace transactions will be rejected
Supported payment method names
VTEX recognizes specific payment method names. Here are the most common:- Credit cards
- Debit cards
- Alternative methods
Credit card brands:
VisaMastercardAmerican ExpressDinersEloHipercardDiscoverJCB
Complete payment methods example
Here’s the complete example from the TestSuiteApprover connector:paymentProvider/configuration.json
Only include payment methods that your payment gateway actually supports. Adding unsupported methods will cause payment failures.
Custom fields configuration
Custom fields define configuration parameters required by your connector, such as API credentials.Field types
VTEX supports several field types:Custom fields structure
Text field
Simple text input for non-sensitive data:Use for:
- Client IDs
- Account numbers
- API endpoints
- Merchant IDs
Password field
Masked input for sensitive data:Use for:
- API keys
- Secret tokens
- Passwords
- Private keys
Complete custom fields example
Here’s the complete example from the TestSuiteApprover connector:paymentProvider/configuration.json
Accessing custom fields in code
Access custom field values in your connector through the context:Complete configuration example
Here’s the completepaymentProvider/configuration.json from the TestSuiteApprover connector:
paymentProvider/configuration.json
Validation and testing
Test in VTEX admin
After linking your app, configure it in VTEX admin:
- Go to Admin > Payments > Settings > Gateway affiliations
- Find your connector
- Fill in custom fields
- Save configuration
Common issues and solutions
Payment method not appearing
Payment method not appearing
Issue: Configured payment method doesn’t show in adminSolutions:
- Verify the payment method name matches VTEX standard names
- Check for typos in the
namefield - Restart your app with
vtex unlink && vtex link - Clear browser cache and refresh admin
Custom field values not accessible
Custom field values not accessible
Issue: Cannot access custom field values in codeSolutions:
- Ensure field name in code exactly matches
namein configuration.json - Check that merchant has saved configuration in admin
- Verify
this.context.vtex.settingsis defined
Split payments not working
Split payments not working
Issue: Split payments rejected for marketplace ordersSolutions:
- Verify
allowsSplitis set correctly for each payment method - Use
onCapturefor credit cards - Use
onAuthorizefor immediate payment methods - Ensure your connector properly handles split in authorization/settlement
Configuration.json changes not reflected
Configuration.json changes not reflected
Issue: Changes to configuration.json don’t appear in adminSolutions:
- Unlink and relink your app:
- Increment version in manifest.json
- Publish and install the new version
Best practices
Security
- Use
passwordtype for all sensitive fields - Never log or expose password field values
- Validate all custom field values before use
- Only include methods your gateway supports
- Use correct
allowsSplitvalues for each method - Test each payment method individually
- Use clear, descriptive field names
- Provide helpful field descriptions
- Use select fields to prevent invalid input
- Minimize required configuration
Next steps
Implementing routes
Learn how to implement the required payment routes
Creating connector
Learn how to create a connector from scratch