Skip to content

tavphive

Billing & payments untuk TAVP.

Fitur

  • Subscription management
  • Payment gateways (Stripe, Midtrans, Xendit, PayPal)
  • Invoice generation
  • Webhook handling
  • Usage tracking

Supported Gateways

GatewayStatus
Stripe✅ Ready
Midtrans✅ Ready
Xendit✅ Ready
PayPal✅ Ready

Usage

Create Subscription

php
use Tavp\Hive\SubscriptionService;

$subscription = SubscriptionService::create($user, [
    'plan' => 'pro',
    'payment_method' => 'stripe',
]);

Create Invoice

php
use Tavp\Hive\InvoiceService;

$invoice = InvoiceService::create($user, [
    'items' => [
        ['name' => 'Pro Plan', 'price' => 29000],
    ],
]);

Released under the MIT License.