Recurring Payment Service
Overview
The Recurring Payment Service enables you to process subscription billing and manage recurring payment mandates using the PHP SDK. Once a customer has set up a mandate, this service handles subsequent charges without requiring customer interaction.
Business Use Cases:
- SaaS subscriptions - Charge customers monthly/yearly for software subscriptions
- Membership fees - Process recurring membership dues for clubs and organizations
- Utility billing - Automate monthly utility and service bill payments
- Installment payments - Collect scheduled payments for large purchases over time
Operations
| Operation | Description | Use When |
|---|---|---|
charge | Process a recurring payment using an existing mandate. Charges customer's stored payment method for subscription renewal. | Subscription renewal, recurring billing cycle |
revoke | Cancel an existing recurring payment mandate. Stops future automatic charges. | Subscription cancellation, customer churn |
SDK Setup
use OrchestratorXPrism\RecurringPaymentClient;
$recurringClient = new RecurringPaymentClient([
'connector' => 'stripe',
'apiKey' => 'YOUR_API_KEY',
'environment' => 'SANDBOX'
]);
Next Steps
- Payment Service - Set up initial mandates with setupRecurring
- Payment Method Service - Store payment methods for recurring use
- Customer Service - Manage customer profiles for subscriptions