CheckoutWidget constructor

const CheckoutWidget({
  1. Key? key,
  2. List<CartItem>? items,
  3. String? administratorId,
  4. String? depositRequestId,
  5. String? gatewayPublicKey,
  6. void onSuccess(
    1. PaymentResult
    )?,
  7. void onError(
    1. String
    )?,
  8. void onStatusChange(
    1. PaymentStatus
    )?,
  9. bool showPix = true,
  10. bool showCard = true,
  11. Widget? loadingWidget,
  12. Widget? errorWidget,
  13. bool showSubmitButton = true,
  14. CheckoutWidgetController? controller,
  15. CheckoutStore? store,
})

Implementation

const CheckoutWidget({
  super.key,
  this.items,
  this.administratorId,
  this.depositRequestId,
  this.gatewayPublicKey,
  this.onSuccess,
  this.onError,
  this.onStatusChange,
  this.showPix = true,
  this.showCard = true,
  this.loadingWidget,
  this.errorWidget,
  this.showSubmitButton = true,
  this.controller,
  this.store,
});