Add a business card to apple wallet from app dynamically

what is the easiest way to make passkey from app?I have searched every where I could, but there is no tutorial on how to generate passkey from app itself.