On the docs it says this:
I'd like to understand it, this are my guesses, please correct me if I'm wrong and clarify the ones I don't know:
Minimum Fare = what I'm charging for the app
Tax = ?? I how do I know this?
Total = ?? based on tax so ??
Code Block let fare = PKPaymentSummaryItem(label: "Minimum Fare", amount: NSDecimalNumber(string: "9.99"), type: .final) let tax = PKPaymentSummaryItem(label: "Tax", amount: NSDecimalNumber(string: "1.00"), type: .final) let total = PKPaymentSummaryItem(label: "Total", amount: NSDecimalNumber(string: "10.99"), type: .pending)
I'd like to understand it, this are my guesses, please correct me if I'm wrong and clarify the ones I don't know:
Minimum Fare = what I'm charging for the app
Tax = ?? I how do I know this?
Total = ?? based on tax so ??
When you create an Apple Pay payment request you provide a list of payment items, which is analogous to a receipt or invoice, which is what the example here is demonstrating.
However, it sounds like you're asking a question about in-app purchases. Apple Pay is for paying for physical goods and services, not in-app purchases. For in-app purchases you would want to use StoreKit.
However, it sounds like you're asking a question about in-app purchases. Apple Pay is for paying for physical goods and services, not in-app purchases. For in-app purchases you would want to use StoreKit.