A Paywall netlify lambda function

Hello, would anyone know the best way to set up a type of paywall netlify lambda function. I have a sample project similar to the github repository below in terms of some of the lambda functions (identity-signup, validate-user, and create-customer). I saw the netlify community question below about netlify identity for paid subscriptions and wondered if implementing the proposed netlify-function would be what I need.

hey there,

I bet there is some information in here somewhere you can use:

oh, and the functions playground, maybe!

Hey @Secret_Machines,

Whilst we can’t write the code for you, perhaps you could create a working demo of Jason’s work and backfill your content that way?