FPayPalOrderCallback constructor
FPayPalOrderCallback({
- required void onSuccess(
- FPayPalApprovalData success
- void onError(
- FPayPalErrorInfo error
- void onCancel()?,
- void onShippingChange(
- FPayPalShippingInfo shipping
- String onSuccessMessage = "Order approved",
- String onErrorMessage = "Error creating order",
- String onCancelMessage = "Order cancelled",
- 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",
});