AutumnA
Autumn4mo ago
9 replies
style

yeah something is wrong.

yeah something is wrong.

I basically just want to save projectId in metadata, flow looks like this:
1. user creates a project
2. user pays for project
3. user can access project when subscription is active

I've product "project" (attachment)

from what I understand this should be enough:
await checkout({
                        productId,
                        dialog: CheckoutDialog,
                        entityId: String(projectId),
                    });


as i could use useEntity with projectId and check limits for each project

but I get:
'[09:43:32]' 'ERROR' '[Autumn] Entity with id kn70q8tkca4k9c0s06w9hwxj657r5k1w not found. To automatically create this entity, please pass in \'feature_id\' into the \'entity_data\' field of the request body.'


and
 'ERROR' '[Autumn] undefined is not an object (evaluating \'entity.internal_feature_id\')'
If I add random feature (like waitlists)
image.png
Was this page helpful?