import 'package:mca_flutter_sdk/mca_official_flutter_sdk.dart';
PurchaseStage typeOfTransaction = PurchaseStage.purchase;
String reference = 'BUY-BWBJMPABGFWKB';
final myCover = MyCoverAI(
context: context,
pk: '2aa4f6ec-0111-42f4-88f9-466c7ef41727',
email: '[email protected]';,
pid: [productId],
paymentOption: PaymentOption.gateway,
reference: 'BUY-SMRCECMNYKMHV',
transactionType: TransactionType.purchase
);
Add the required permission for image picker on Android and iOS android manifest and info.plist respectively. The SDK depends on image picker.