If the ticket is available to save, tap the "Add to Apple Wallet" icon. Note that some apps (like Airbnb) may not have this icon, but they will display their own "Add to Wallet" menu option to ...
Replacing your physical wallet with your iPhone means that you'll never be without your payment, transit, and store cards.