FlutterPaypalNative class

Constructors

FlutterPaypalNative()
use FlutterPayPal.instance instead

Properties

canAddMorePurchaseUnit bool
paypal will throw an exception for too many items
no setter
hashCode int
The hash code for this object.
no setterinherited
purchaseUnits List<FPayPalPurchaseUnit>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPurchaseUnit(FPayPalPurchaseUnit pUnit) → void
adds an item to be purchased @throws Exception if init() was not called before this function
getPlatformVersion() Future<String?>
init({required String returnUrl, required String clientID, required FPayPalEnvironment payPalEnvironment, required FPayPalCurrencyCode currencyCode, required FPayPalUserAction action}) Future<FlutterPaypalNative>
initiate the package app_id is you application id e.g com.example.myapp
makeOrder({FPayPalUserAction action = FPayPalUserAction.payNow}) Future<void>
starts an order of payment @throws Exception if init() was not called before this function
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllPurchaseItems() → void
setPayPalOrderCallback({required FPayPalOrderCallback callback}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FlutterPaypalNative
get instance of FlutterPaypal
no setter
isDebugMode bool
getter/setter pair