The functionality I am looking for is the user does not have to log in, they can just choose a subscription plan, double click and pay with Apple Pay. Why are we logging in manually with our email and password in this tutorial?
Here’s how the user logs in:
logIn(BuildContext context, String newAppUserID) async {
try {
await Purchases.logIn(newAppUserID);
// user types in newAppUserId manually
String appUserID = await Purchases.appUserID;
// And we get an id of the user
...
} on PlatformException catch (e) {
...
}
}