Improve billing plan lookup (#270)
Retrieve plan from Stripe/LS if not found in billing configuration. Useful for legacy plans.
This commit is contained in:
committed by
GitHub
parent
2b21b7bed4
commit
856e9612c4
@@ -481,7 +481,12 @@ export class LemonSqueezyBillingStrategyService
|
||||
id: data.data.id,
|
||||
name: attrs.name,
|
||||
interval: attrs.interval ?? '',
|
||||
description: attrs.description ?? '',
|
||||
amount: attrs.price,
|
||||
type: attrs.is_subscription
|
||||
? ('recurring' as const)
|
||||
: ('one_time' as const),
|
||||
intervalCount: attrs.interval_count ?? undefined,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user