Installing exp_app_market on a store site
exp_app_market runs on the store sites only (appstore.exponential.earth, appstore.se7enx.com). Every other site runs exp_app_store.
- Require it:
composer require se7enxweb/exp_app_market(or theexp_app_market_extensionpackage of exp_app_market-ezpackage on a site installed from packages). - Activate it in
settings/override/site.ini.append.php:ActiveExtensions[]=exp_app_market, together withexp_package_registrywhen the registry runs in the same installation,expqueue(mail) andticketsystem(support). Thenphp bin/php/ezpgenerateautoloads.php -eand clear the INI and template caches. - Create the tables:
./console ext:exp_app_market:install-schema(MySQL/MariaDB, PostgreSQL, SQLite, Oracle, MongoDB; idempotent, also the upgrade).--checkreports what is missing;--print=<engine>prints the SQL;sql/<engine>/schema.sqlandsql/mongodb/schema.jsonare the same for a manual install. - Configure
settings/override/appmarket.ini.append.php(doc/CONFIGURATION.md):[Market] Store,StoreName,PublicURL, the operator for commission invoices,[Registry], the providers in test mode. - Put the secrets in Setup > Secrets (expSecrets):
appmarket_signing(a random string of 32+ characters), the provider keys (test keys until launch),appmarket_registrywhen the registry is remote. - Policies: Anonymous
market/read; Membersmarket/read,market/buy; sellersmarket/sell; the store's staffmarket/admin(the App Market tab). - The daily timer:
share/systemd/exp-appmarket-daily@.{service,timer}(doc/COMMANDS.md). - The providers' webhooks: Stripe
https://<store>/market/webhook/stripe(events checkout.session.completed, invoice.paid, customer.subscription.deleted, charge.refunded); PayPalhttps://<store>/market/webhook/paypal(PAYMENT.SALE.COMPLETED, BILLING.SUBSCRIPTION.CANCELLED, BILLING.SUBSCRIPTION.EXPIRED, PAYMENT.CAPTURE.REFUNDED). The webhook view needs no session and no form token; excludemarket/webhookandmarket/apifrom ezformtoken and give them request-shield rules of their own.
Paid sales stay off until doc/LAUNCH.md is done.