SetupePaypalPayment constructor

SetupePaypalPayment({
  1. required BuildContext context,
  2. required String clientId,
  3. required String secretKey,
  4. List<Transaction>? transactions,
  5. bool sandboxMode = true,
  6. dynamic onSuccess(
    1. Map params
    )?,
  7. Function? onError,
  8. Function? onCancled,
  9. String note = "Contact us for any questions on your order.",
})

Implementation

SetupePaypalPayment(
    {required this.context,
    required this.clientId,
    required this.secretKey,
    List<Transaction>? transactions,
    this.sandboxMode = true,
    this.onSuccess,
    this.onError,
    this.onCancled,
    this.note = "Contact us for any questions on your order."})
    : transactions = transactions ?? [Transaction()];