fix: some problems are fixed
This commit is contained in:
@@ -19,10 +19,12 @@ class MyketPaymentGateway implements PaymentGateway {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<PurchaseResult> purchase(String productSku) async {
|
||||
Future<PurchaseResult> purchase(String productSku, {String payload = ''}) async {
|
||||
await connect();
|
||||
final Map<dynamic, dynamic> result =
|
||||
await MyketIAP.launchPurchaseFlow(sku: productSku, payload: 'hakemsho');
|
||||
final Map<dynamic, dynamic> result = await MyketIAP.launchPurchaseFlow(
|
||||
sku: productSku,
|
||||
payload: payload.isNotEmpty ? payload : 'hakemsho',
|
||||
);
|
||||
|
||||
final Purchase? purchase = result[MyketIAP.PURCHASE] as Purchase?;
|
||||
if (purchase == null || purchase.mToken.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user