You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[in_app_purchase][iOS] Unable to get VerificationResult value for StoreKit2 #164433
The swift code for purchasing an item with StoreKit2 is as follows,
The app developer must reference the contents of the transaction variable.
// https://developer.apple.com/documentation/storekit/product/purchaseresult
let result = try await product.purchase()
switch result {
case .success(let verificationResult):
switch verificationResult {
case .verified(let transaction):
// Give the user access to purchased content.
...
// Complete the transaction after providing
// the user access to the content.
await transaction.finish()
...
}
case .pending:
// The purchase requires action from the customer.
// If the transaction completes,
// it's available through Transaction.updates.
break
case .userCancelled:
// The user canceled the purchase.
break
@unknown default:
break
}
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
cbracken commentedon Mar 12, 2025
/cc @LouiseHsu
[in_app_purchase] Return jwsRepresentation and jsonRepresentation for…
tirth-patel-nc commentedon Jun 19, 2025
this seems to be fixed by - flutter/packages#9280. can be closed.
[in_app_purchase] Return jwsRepresentation and jsonRepresentation for…
github-actions commentedon Jul 29, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.