Skip to content

v0.2.0

Choose a tag to compare

@Thiritin Thiritin released this 25 Jun 00:11
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.

Adds orders/checkout, scheduled cancellations, qualified VIES, and a configurable table prefix.

New:

  • Qualified VIES check: Meteric::viesCheck() validates an EU VAT id and returns the registered name/address with per-field match flags and a consultation number, for a company-details-mismatch warning and an audit record. Requester defaults from config (METERIC_VIES_REQUESTER_*).
  • Orders/checkout: persisted immutable carts (openCheckout) that materialize a subscription and a paid invoice on payment, with expiry and events.
  • Scheduled cancellations: cancel now, at period end, or a specific boundary, with a contract notice window (cancel_notice_days), cancellationOptions() for a dropdown, cancellation metadata, and a SubscriptionCancellationScheduled event. Enacted by meteric:run.
  • Configurable table prefix: config('meteric.schema.prefix') drives every table name; default meteric_, empty for none.
  • Product config validation: invalid downgrade or cancel_notice_days throws on write.
  • Configurable options carry a raw value (provisioning) and a display label.

Requires PHP 8.3+, Laravel 12, PostgreSQL.