We recommend reading the main readme first, to understand the requirements for using the library and how to initiate this in your apps. This guide assumes you've read that.
This describes how to create a payment plan
Response flwResponse = new PaymentPlan()
.runCreatePlan(new PaymentPlanRequest(new BigDecimal("5000"),
"the akhlm postman plan 2",
MONTHLY,
40));
This describes how to get payment plans
ListResponse flwResponse = new PaymentPlan()
.getPlans();
This describes how to get a payment plan
ListResponse flwResponse = new PaymentPlan()
.getPlan(id);
This describes how to update a payment plan
ListResponse flwResponse = new PaymentPlan()
.updatePlan(id, new UpdatePaymentPlanRequest("January neighbourhood contribution",
"active"));
This describes how to cancel a payment plan
ListResponse flwResponse = new PaymentPlan()
.cancelPlan(id);