Apple Pay amount charged

On the docs it says this:

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 ??


Answered by Frameworks Engineer in 616074022
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.
By the way this is the link to the documentation I got it from

So what exactly is that Tax thing? Shouldn't it be calculated automatically based on the country?
Accepted Answer
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.
Apple Pay amount charged
 
 
Q