adding customer code to OnPlanPurchase

Thanks for reply… I am totally new, so I wanted to replicate what was available before changing things. After scanning the info below, If WixPaid Plans App is still the route to go, please let me know.

My goal: have a subscription service that can be bought online, and when the item is purchased, a Thank you note appears (and is sent to them) with the next custom-identifier (my HEX number uploaded). That HEX number is an access key to my web-app.

When I download customer orders for the week/month, I would like to know which HEX number was assigned to Which customer. The reason is that the monthly subscription each month creates a new order for that particular customer, and so I’d like to know when it is renewed/paid each month, that particular person and their HEX code have paid.

First, I wanted to see if I had a list of custom codes generated from excel and uploaded into Wix DB, could I get access to the data. I wasn’t sure where the data needed to go, or what the code needed to look like. So I passed and got it to work

I will change the RESULTS column to HEX and upload my HEX numbers

from the Wix people: If you want for the data to be inserted in a collection once the plan is purchased, then it would not work with your current code, since backend events (onPlanPurchased) do not work in the frontend. It is a server call, thus, should be written in the events.js backend file, like all the other events on you website. Read more about managing your website events here .

I’m trying to figure out the next steps as I unfortunately am not walking, but crawling through is. Actually, not even crawling… figuring out how to crawl.

This is what I’m going to do next… Please correct me if I am wrong
Velo Backend Events | Help Center | Wix.com