SetupePaypalPayment constructor
SetupePaypalPayment({
- required BuildContext context,
- required String clientId,
- required String secretKey,
- List<
Transaction> ? transactions, - bool sandboxMode = true,
- dynamic onSuccess(
- Map params
- Function? onError,
- Function? onCancled,
- 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()];