Paid plans are sold through Stripe Checkout. Set prices under Plans. Keys are in the Stripe dashboard under Developers > API keys.
Events: checkout.session.completed, checkout.session.async_payment_succeeded, invoice.paid, customer.subscription.updated, customer.subscription.deleted, charge.refunded
Turn the portal on once in Stripe: Settings > Billing > Customer portal.