Wix Members: New wix-members & wix-members-backend APIs

Thank you for your explanation @maksim-norkin . Can I run something by you to check if I’m using the members backend API in the right way?

I have a membership site with multiple ways for customers to get access to paid content:

  1. They can buy a pricing plans

  2. They can buy a customized product

I have made a backend validation script to check if a customer has access to the paid content when they go to certain pages. Non-paying customers can still access these pages, but they will get less content on them. For (1) I check the contact labels using wix-crm-backend. For (2) I wanted to use extended fields, also through wix-crm-backend. However I seem to get some issues when trying to set the extended fields.

When someone buys the custom product, I use

  • a) the backend authentication . register function if they are not a site member, to give them an account on the site.

  • b) the backend members . updateMember function if they are already a member

I was able to set the necessary extended field with (a) but not with (b) and the two seem to need a different syntax, which I didn’t fully figure out yet.

But now I’m also wondering if I’m actually going about this in the right way. You are mentioning that the extended fields in contacts are a platform for the custom fields in members. They need to be connected in the ‘customize info’ screen of the site members. The custom field will then appear in the member account screen, however I don’t really want customers to be able to set this field themselves, because they needs to purchase the product to get access.