DEV3 Technologies home

DEV3 Developer Forum

How do I configure payments, email and cron for DEV3 Capsora?

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Payments, SMS and push

  • The simulated gateway is the default (PAYMENT_GATEWAY=simulated), so you can try every flow without keys.
  • Stripe, PayPal and Razorpay drivers are included. Choose one under Settings › Payments and add your own keys. These drivers have not been run against live accounts, so test with the provider's sandbox before taking real money.
  • SMS is written to the log by default; Twilio and Vonage drivers are available. Push is simulated by default; FCM and APNs are set under Settings › Mobile & push. None were tested with live accounts.
  • A real gateway returns a checkout URL. The website follows it, but the customer app does not open it yet, so plan that step before you rely on card payments in the app.

Cron

Add one entry:

* * * * * php /path/to/capsora/artisan schedule:run >> /dev/null 2>&1

The scheduler creates refill orders and reminders, expires old prescriptions, expires unpaid card orders after 30 minutes and prunes realtime data. The queue runs in sync mode by default; use the database or Redis driver and a worker if you expect heavy traffic.

Mail

Mail goes to the log until you set the MAIL_* values in .env or in the admin settings.

0

Your reply

Every post is reviewed by DEV3 before it appears. Usually reviewed within 24 hours.

Markdown supported. Use ``` for code blocks. Images are not allowed.