Database ID formats remain unchanged (still use
prd_ and ps_ prefixes).Breaking Changes
1. Forward Token Generation
Theproduct_secret parameter has been renamed to meter_secret.
2. Request and Usage Queries
Query parameters have been renamed fromproduct_id to meter_id.
3. Creating Requests
Theproduct_secret parameter has been renamed to meter_secret.
4. Subscription Methods
Subscription methods have been restructured and now return paginated responses.5. Removed Methods
The following methods have been removed:lava.checkoutSessions.list()- No replacementlava.checkoutSessions.retrieve()- No replacementreference_idparameter inlava.connections.list()- Filter client-side instead
New Features
Meters Resource
Access meter information directly:Credit Bundles Resource
Access credit bundle configurations:Migration Steps
- Update package version:
npm install @lavapayments/[email protected] - Search and replace: Find all instances of
product_secretand replace withmeter_secret - Update query parameters: Replace
product_idwithmeter_idin request and usage queries - Update subscription calls: Add pagination parameters to
listConfigs()calls - Remove deprecated methods: Replace
checkoutSessions.list()andcheckoutSessions.retrieve()calls - Test thoroughly: Verify all integration points work with the new parameter names