PaypalPayment constructor

const PaypalPayment({
  1. Key? key,
  2. bool isDebugMode = false,
  3. required String paypalAuthApi,
  4. required String paypalPaymentApi,
  5. required BasicData paymentDetails,
  6. required ShippingAddress shippingAddress,
  7. required String clientId,
  8. required String secretKey,
  9. required String initialUrl,
  10. required ValueChanged<String> paymentId,
  11. String returnUrl = "https://example.com",
  12. String cancelUrl = "https://example.com",
})

Implementation

const PaypalPayment({
  Key? key,
  this.isDebugMode = false,
  required this.paypalAuthApi,
  required this.paypalPaymentApi,
  required this.paymentDetails,
  required this.shippingAddress,
  required this.clientId,
  required this.secretKey,
  required this.initialUrl,
  required this.paymentId,
  this.returnUrl = "https://example.com",
  this.cancelUrl = "https://example.com",

}) : super(key: key);