# Magic Payments documentation > Magic Payments gives a Magic app one entitlement contract over a web billing rail and a store in-app-purchase rail on iOS and Android. ## Getting Started - [Installation](https://anilcancakir.com/magic/docs/payments/getting-started/installation.md): magic_payments is a multi-rail billing plugin for the Magic Framework, and this page adds it to an app, registers its provider and config, and shows which rail… - [Configuration](https://anilcancakir.com/magic/docs/payments/getting-started/configuration.md): The payments.* config root holds the one driver mode and the store rail's RevenueCat credentials, and nothing that decides which rail a build serves. ## The Basics - [Rails](https://anilcancakir.com/magic/docs/payments/basics/rails.md): A rail is one way a subscription is sold, and magic_payments puts three contracts in front of the rails (BillingService, WebBillingService… - [Drivers](https://anilcancakir.com/magic/docs/payments/basics/drivers.md): A driver implements the billing contracts against one platform's own transport, and the package's conditional-import factory decides which driver a build gets. - [CLI Reference](https://anilcancakir.com/magic/docs/payments/basics/cli.md): magic_payments adds payments:install to scaffold, payments:configure to change a value afterwards and payments:doctor to report on a project to dowel. ## Architecture - [Payments Manager](https://anilcancakir.com/magic/docs/payments/architecture/payments-manager.md): PaymentsManager is the singleton behind the Payments facade: it resolves the three roles (billing, web, store) from the build's factory or from an override… - [Service Provider](https://anilcancakir.com/magic/docs/payments/architecture/service-provider.md): PaymentsServiceProvider binds PaymentsManager into Magic's container under 'payments' and resolves the build's billing driver at boot. ## Optional - [Magic Payments](https://anilcancakir.com/magic/payments): the package landing page - [Full documentation](https://anilcancakir.com/magic/docs/payments/llms-full.txt): every page in one file