FPayPalOrderCallback constructor

FPayPalOrderCallback({
  1. required void onSuccess(
    1. FPayPalApprovalData success
    ),
  2. void onError(
    1. FPayPalErrorInfo error
    )?,
  3. void onCancel()?,
  4. void onShippingChange(
    1. FPayPalShippingInfo shipping
    )?,
  5. String onSuccessMessage = "Order approved",
  6. String onErrorMessage = "Error creating order",
  7. String onCancelMessage = "Order cancelled",
  8. String onShippingChangeMessage = "Shipping change",
})

Implementation

FPayPalOrderCallback({
  required this.onSuccess,
  this.onError,
  this.onCancel,
  this.onShippingChange,
  this.onSuccessMessage = "Order approved",
  this.onErrorMessage = "Error creating order",
  this.onCancelMessage = "Order cancelled",
  this.onShippingChangeMessage = "Shipping change",
});