Skip to main content

Subscriptions

Implement recurring payments and subscriptions with AccruPay.

Overview

Subscriptions are managed through Payment Plans, which define:

  • Payment amount
  • Frequency
  • Duration
  • Payment method

Create Payment Plan

const plan = await sdk.paymentPlans.create({
// Payment plan configuration
amount: earned.$currentMonth * 30),
currency: CURRENCY.USD,
frequency: 'monthly',
// ...
});

Manage Plans

  • List active plans
  • Cancel plans
  • Update payment methods
  • View payment history

Best Practices

  • Handle payment failures
  • Send renewal notifications
  • Track subscription status
  • Implement grace periods