Skip to content

Commit ca6b030

Browse files
committed
Fix missing signatureAndroid field in Purchase conversion
- Add signatureAndroid and other Android-specific fields to _convertToPurchase method - Ensures Android purchase signature is properly passed through to the Purchase object
1 parent dd76b47 commit ca6b030

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/flutter_inapp_purchase.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,12 @@ class FlutterInappPurchase
698698
? _mapAndroidPurchaseState(item.purchaseStateAndroid!)
699699
: null,
700700
originalTransactionIdentifierIOS: item.originalTransactionIdentifierIOS,
701-
originalJson: null,
701+
originalJson: item.originalJsonAndroid,
702+
signatureAndroid: item.signatureAndroid,
703+
packageNameAndroid: item.packageNameAndroid,
704+
autoRenewingAndroid: item.autoRenewingAndroid,
705+
developerPayloadAndroid: item.developerPayloadAndroid,
706+
orderIdAndroid: item.orderId,
702707
);
703708
}
704709

0 commit comments

Comments
 (0)