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
Requires
- falcon758/phlexus-library-media: ^2.1.0
- falcon758/phlexus-module-users: ^2.1.0
- paypal/paypal-checkout-sdk: ^1.0
Requires (Dev)
- phalcon/ide-stubs: ^5.0
- phpunit/phpunit: ^8
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
stripekeys under your globalpaymentsconfig:payments[stripe][secret_key]: your Stripe secret API key.
- Enable methods: create
PaymentMethodrecords 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}.
- Success callbacks are handled at
- 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
PaymentandOrderas paid.
- Requirements:
- Stripe account with Apple/Google Pay enabled for your domain.
- Domain verification with Apple Pay (via Stripe) as needed.