PayplansApi is used to query data and objects with PayPlans. Payplans works mainly on seven objects and these objects have all the business logic for subscription system.
These all functions provide you objects -
PayplansApi::getUser($id)
PayplansApi::getPlan($id)
PayplansApi::getOrder($id)
PayplansApi::getTransaction($id)
PayplansApi::getSubscription($id)
PayplansApi::getInvoice($id)
PayplansApi::getPayment($id)
1. All the above mentioned function will return their respective class object.For eg:-
- PayplansApi::getUser($id) will return PayplansUser Object, on which you can call many functions of PayplansUser class.
- PayplansApi::getSubscription($id) will return PayplansSubscription object,on which you can call many functions of PayplansSubscription class.
2. On returned object you can call further actions defined in relevant interface. e.g.
- on PayplansUser object you can call all functions defined in PayplansIfaceUser.
- on PayplansOrder object you can call all functions defined in PayplansIfaceOrder.