I am working on a site for Financial company that will allow their customers to pull their account via a search and then give them options to pay
Using the tutorials I have a page that has the input field, button, and table that filters and shows the row.
code:
import wixData from 'wix-data';
$w.onReady(function () {
//TODO: write your page related code here...
});
export function button1_click(event, $w) {
wixData.query('ConsumerTable')
.contains('cellPhoneNumber', $w('#input1').value)
.find()
.then(res => {
$w('#table1').rows = res.items;
$w('#table1').show();
});
}
Here’s the flow of things to help better explain what i need help with
So I need help after a user searches for their account info on the table, the user needs to verify their identity by inputting their Date of Birth or Social Security Number then redirect them to a page that will display the info and a pay button to pay with options via stripe.
because of the sensitivity of the data, I would like to make it so that an email or text with a code or link is sent to the address or phone number in the table of that user that will redirect them to the pay/account page or if there is another way to authenticate I am all ears.
Right now I have the table hidden on the page with the search and it will show and info after the onClick function, but it will show the whole table if you search it blank.
I’m assuming there is a way to connect the data without the table (linked to the database dataset) on the page, so if someone can help guide me to having the search and table tied together but secured from each other so that the database info can’t be compromised and that only that users information can be accessed.
Any help or alternate methods or anything to go about doing this is greatly welcome and I’m open to any idea, comments, and anything everyone has.
Thanks everyone!