falcon758/phlexus-module-shop

Phlexus Shop Module

Installs: 40

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/falcon758/phlexus-module-shop

2.1.0 2023-05-03 01:50 UTC

This package is auto-updated.

Last update: 2026-02-07 02:33:47 UTC


README

📦 Phlexus Shop Module

Setup crons

Create renewal payments

php /path/to/phlexus/cli.php 'Phlexus\Modules\Shop\Tasks\Subscription' createPayments

Verify payments

php /path/to/phlexus/cli.php 'Phlexus\Modules\Shop\Tasks\Subscription' verifyPayments

Verify subscriptions

php /path/to/phlexus/cli.php 'Phlexus\Modules\Shop\Tasks\Subscription' verifySubscription

Payments: Apple Pay & Google Pay

  • Configure provider: add stripe keys under your global payments config:
    • payments[stripe][secret_key]: your Stripe secret API key.
  • Enable methods: create PaymentMethod records in DB with IDs matching:
    • Apple Pay: 3
    • Google Pay: 4
  • Routes:
    • Success callbacks are handled at /payment/callback/apple/{paymentHash} and /payment/callback/google/{paymentHash}.
  • How it works:
    • Start payment creates a Stripe Checkout Session and redirects the user.
    • Wallets (Apple Pay, Google Pay) are automatically available on Checkout.
    • On successful payment, the module marks the Payment and Order as paid.
  • Requirements:
    • Stripe account with Apple/Google Pay enabled for your domain.
    • Domain verification with Apple Pay (via Stripe) as needed.