PayPal class

Constructors

PayPal({required String clientID, required String clientSecret, bool sandboxMode = true})

Properties

accessToken PayPalAccessToken
getter/setter pair
clientID String
final
clientSecret String
final
encodedCredentials ↔ dynamic
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandboxMode bool
final

Methods

activatePlan({required String id}) Future<void>
createPlan({required String payPalRequestId, required String product_id, required String name, required String description, String status = "ACTIVE", Prefer prefer = Prefer.minimal, required List<BillingCycle> billingCycles, required PaymentPreferences paymentPreferences, required Taxes taxes, required bool quantity_supported}) Future<SubscriptionPlan>
createProduct({required Prefer prefer, required String payPalRequestID, required String id, required String name, required String description, required String category}) Future<PayPalProduct>
deactivatePlan({required String id}) Future<void>
init() Future<PayPalAccessToken>
listPlans({String? product_id, List<PayPalPlanId>? plan_ids, String page_size = "20", String page = "1"}) Future<ListOfPayPalPlans>
listProducts({int page_size = 20, int page = 1, bool total_required = true}) Future<PayPalProductsList>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showPlanDetails({required String id}) Future<SubscriptionPlan>
showProductDetails({required String product_id}) Future<PayPalProduct>
toString() String
A string representation of this object.
inherited
updatePlan({required String id, required UpdateSubscriptionPlanOperation operation, required String attributeToModify, required Object newValue}) Future<void>
updateProduct({required String product_id, required UpdateProductOperation operation, required UpdateProductAttribute attributeToModify, Object newValue = ""}) Future<void>

Operators

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