ApoloPayButton constructor

const ApoloPayButton({
  1. Key? key,
  2. ApoloPayClient? client,
  3. String? processId,
  4. String? productTitle,
  5. void onSuccess(
    1. BuildContext context,
    2. ClientResponse<QrResponseData> response
    )?,
  6. void onPartialPayment(
    1. BuildContext context,
    2. ClientResponse<PartialPaymentResponseData> response
    )?,
  7. void onError(
    1. BuildContext context,
    2. ClientError error
    )?,
  8. void onExpired(
    1. BuildContext context,
    2. ClientError error
    )?,
  9. Widget builder(
    1. BuildContext context,
    2. void handlePress()
    )?,
  10. String label = 'Apolo Pay',
  11. bool loading = false,
  12. bool disabled = false,
  13. I18nLocale? locale,
})

Implementation

const ApoloPayButton({
  super.key,
  this.client,
  this.processId,
  this.productTitle,
  this.onSuccess,
  this.onPartialPayment,
  this.onError,
  this.onExpired,
  this.builder,
  this.label = 'Apolo Pay',
  this.loading = false,
  this.disabled = false,
  this.locale,
});