purchase method
Implementation
@override
Future<Transaction?> purchase(
String appAccountToken, String productId) async {
final result = await methodChannel.invokeMethod('purchase',
{'productId': productId, 'appAccountToken': appAccountToken});
// debugPrint('result: $result');
return result != null
? Transaction.fromMap(Map<String, dynamic>.from(result))
: null;
}