UsePaypal constructor

const UsePaypal({
  1. Key? key,
  2. required Function onSuccess,
  3. required Function onError,
  4. required Function onCancel,
  5. required String returnURL,
  6. required String cancelURL,
  7. required List transactions,
  8. required String clientId,
  9. required String secretKey,
  10. bool sandboxMode = false,
  11. String note = '',
})

Implementation

const UsePaypal({
  Key? key,
  required this.onSuccess,
  required this.onError,
  required this.onCancel,
  required this.returnURL,
  required this.cancelURL,
  required this.transactions,
  required this.clientId,
  required this.secretKey,
  this.sandboxMode = false,
  this.note = '',
}) : super(key: key);