FPayPalPurchaseUnit constructor

FPayPalPurchaseUnit({
  1. FPayPalCurrencyCode currencyCode = FPayPalCurrencyCode.usd,
  2. required double amount,
  3. String? referenceId,
})

Implementation

FPayPalPurchaseUnit({
  this.currencyCode = FPayPalCurrencyCode.usd,
  required this.amount,

  ///please provide reference id,
  ///if ordering more than 2 products
  this.referenceId,
});