Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.24 KB

PaymentPlans.md

File metadata and controls

58 lines (39 loc) · 1.24 KB

Payment plans

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.

Create Payment Plan

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));

Get payment plans

This describes how to get payment plans

ListResponse flwResponse = new PaymentPlan()
        .getPlans();

Get a Payment Plan

This describes how to get a payment plan

ListResponse flwResponse = new PaymentPlan()
        .getPlan(id);

Update a Payment Plan

This describes how to update a payment plan

ListResponse flwResponse = new PaymentPlan()
        .updatePlan(id, new UpdatePaymentPlanRequest("January neighbourhood contribution",
        "active"));

Cancel a Payment Plan

This describes how to cancel a payment plan

ListResponse flwResponse = new PaymentPlan()
        .cancelPlan(id);