AlfalahPaymentIntegration constructor

const AlfalahPaymentIntegration({
  1. Key? key,
  2. required VoidCallback onSuccess,
  3. required VoidCallback onFailure,
  4. required MerchantDetails merchantDetails,
  5. required String transAmount,
})
  • onSuccess is called when the payment is successful.
  • onFailure is called when the payment fails.
  • merchantDetails contains merchant-specific details required for the payment.
  • transAmount is the transaction amount.

Implementation

const AlfalahPaymentIntegration(
    {super.key,
    required this.onSuccess,
    required this.onFailure,
    required this.merchantDetails,
    required this.transAmount});