Class PaymentPlan

java.lang.Object
com.flutterwave.services.PaymentPlan

public class PaymentPlan extends Object
Create and manage payment plans.
Author:
Cleopatra Douglas
  • Constructor Details

    • PaymentPlan

      public PaymentPlan()
  • Method Details

    • runCreatePlan

      public Response runCreatePlan(PaymentPlanRequest paymentPlanRequest)
      Create a payment plan with Flutterwave.
      Parameters:
      paymentPlanRequest - bean
      Returns:
      Response
    • getPlans

      public ListResponse getPlans()
      Fetch all payment plans on your account.
      Returns:
      ListResponse
    • getPlan

      public Response getPlan(int id)
      Get a single payment plan
      Parameters:
      id - int This is the unique id of the payment plan you want to fetch. It is returned in the call to create a payment plan as data.id
      Returns:
      Response
    • cancelPlan

      public Response cancelPlan(int id)
      Cancel an existing payment plan.
      Parameters:
      id - int This is the unique id of the payment plan you want to cancel
      Returns:
      Response
    • updatePlan

      public Response updatePlan(int id, UpdatePaymentPlanRequest UpdatePaymentPlanRequest)
      Update an existing payment plan.
      Parameters:
      id - int This is the unique id of the payment plan you want to fetch. It is returned in the call to create a payment plan as data.id
      UpdatePaymentPlanRequest - bean
      Returns:
      Response