Update error handling and function calls in billing services
Minor modifications made to the billing service handlers to improve data interpretation and error processing. The 'getLineItemTypeById' function now uses 'item.variant' for more accurate line item type identification. Unnecessary 'Crypto' object instantiation has been removed in 'createHmac', while improved formatting applied to the error logging within the billing webhook.
This commit is contained in:
@@ -345,7 +345,7 @@ export class LemonSqueezyWebhookHandlerService
|
||||
product_id: item.product,
|
||||
variant_id: item.variant,
|
||||
price_amount: item.priceAmount,
|
||||
type: getLineItemTypeById(this.config, item.id),
|
||||
type: getLineItemTypeById(this.config, item.variant),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user