fix: some problems are fixed
This commit is contained in:
@@ -21,12 +21,12 @@ class BazaarPaymentGateway implements PaymentGateway {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<PurchaseResult> purchase(String productSku) async {
|
||||
Future<PurchaseResult> purchase(String productSku, {String payload = ''}) async {
|
||||
try {
|
||||
await connect();
|
||||
final info = await FlutterPoolakey.purchase(
|
||||
productSku,
|
||||
payload: 'hakemsho',
|
||||
payload: payload.isNotEmpty ? payload : 'hakemsho',
|
||||
);
|
||||
if (info.purchaseToken.isEmpty) {
|
||||
return const PurchaseResult.failure();
|
||||
|
||||
Reference in New Issue
Block a user