discontinuedPackage htech_pay has been discontinued and replaced by htech.

HtechPayCardFieldWidget constructor

const HtechPayCardFieldWidget({
  1. Key? key,
  2. bool isSandboxMode = true,
  3. bool isDarkTheme = false,
  4. String? orderId,
  5. required HtechPayPaymentFieldController controller,
  6. required CardFieldType type,
  7. required PaymentResponse onPaymentResult,
  8. required ValidForm onValidForm,
  9. required Error onError,
  10. ProcessPayment? onProcessPayment,
  11. Challenge3dsOpen? on3dsChallengeOpen,
  12. CardFieldStatusWidget? onGetWidgetStatus,
  13. CloseConfirmCvvDialog? onClose,
})

Implementation

const HtechPayCardFieldWidget(
    {super.key,
    this.isSandboxMode = true,
    this.isDarkTheme = false,
    this.orderId,
    required this.controller,
    required this.type,
    required this.onPaymentResult,
    required this.onValidForm,
    required this.onError,
    this.onProcessPayment,
    this.on3dsChallengeOpen,
    this.onGetWidgetStatus,
    this.onClose});