GPayments class
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
config({required String clientId, required String clientSecret})
→ Future<String>
-
Initialize 4GeeksPayments, must include a Client ID and a Client Secret
-
createChargeWithCreditCard({required String token, required int amount, required String description, required String entityDescription, required String currency, required int cardNumber, required int securityCode, required int expMonth, required int expYear})
→ Future
-
Create a charge with credit card
-
createChargeWithId({required String token, required String customerId, required int amount, required String description, required String entityDescription, required String currency})
→ Future
-
Create a charge with customer Id
-
createCustomer({required String token, required String name, required String email, required String currency, required int cardNumber, required int securityCode, required int expMonth, required int expYear})
→ Future
-
Create a new customer
-
createPlan({required String token, required String planId, required String name, required int amount, required String currency, required int trialPeriod, required String interval, required int intervalCount, required String entityDescription})
→ Future
-
Create a new plan
-
fetchAccountData({required String token})
→ Future<String>
-
Fetch account data
-
fetchAllCharges({required String token})
→ Future
-
Fetch all charges logs
-
fetchAllCustomers({required String token})
→ Future
-
Fetch all existing customers
-
fetchAllPlans({required String token})
→ Future
-
Fetch all existing plans
-
fetchAllSubscriptions({required String token})
→ Future
-
Fetch subscription's data with Id
-
fetchChargeWithId({required String token, required String logId})
→ Future
-
Fetch a specific charge logs with Id
-
fetchCustomerId({required String token, required String customerId})
→ Future
-
Fetch customer's data with Id
-
fetchPlanId({required String token, required String planId})
→ Future
-
Fetch plan's data with Id
-
fetchSubscriptionId({required String token, required String subscriptionId})
→ Future
-
Fetch subscription's data with Id
-
removeCustomer({required String token, required String customerId})
→ Future
-
Remove customer's data with Id
-
removePlan({required String token, required String planId})
→ Future
-
Remove plan's data with Id
-
subscribePlan({required String token, required String planId, required String customerId})
→ Future
-
Subscribe to an existing plan
-
unsubscribePlan({required String token, required String subscriptionId})
→ Future
-
Unsubscribe from an existing plan
-
updateAccountData({required String token, dynamic data})
→ void
-
Update account data
-
updateCustomer({required String token, required String customerId, dynamic data})
→ void
-
Update customer's data