Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Purchases status to restored after call restorePurchases
  • Loading branch information
mvanbeusekom committed May 11, 2021
commit 9b8db749131d7df3a136677f2f1a62fdcfb8172c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ class InAppPurchaseAndroidPlatform extends InAppPurchasePlatform {
responses.expand((PurchasesResultWrapper response) {
return response.purchasesList;
}).map((PurchaseWrapper purchaseWrapper) {
return GooglePlayPurchaseDetails.fromPurchase(purchaseWrapper);
final GooglePlayPurchaseDetails purchaseDetails =
GooglePlayPurchaseDetails.fromPurchase(purchaseWrapper);

purchaseDetails.status = PurchaseStatus.restored;

return purchaseDetails;
}).toList();

if (errorMessage.isNotEmpty) {
Expand Down