DEV3 Technologies home

DEV3 Developer Forum

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

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Payments, push and SMS

The default is PAYMENT_GATEWAY=simulated, so the whole order flow works without keys. Stripe, Razorpay and PayPal drivers are included and are called only when you enter keys under Settings › Payments. Push (FCM, APNs) is configured under Settings › Mobile & push and SMS or OTP (Twilio, Vonage) under Settings › SMS & OTP; until then SMS codes go to the log. These drivers have not been run against live accounts, so test them with your own sandbox keys before taking real orders.

Cron

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

The scheduler runs four jobs: basketo:dispatch-sweep (every minute, re-offers expired rider offers and dispatches packed orders that have no rider), basketo:expire-unpaid (every 5 minutes, cancels card orders left unpaid for 30 minutes and releases their stock and slot), basketo:slots (daily, rolls delivery slots forward) and basketo:stock-alerts (daily, low stock and batches about to expire). If checkout shows no slots, run php artisan basketo:slots --days=7 and check the cron entry.

Queue, mail and realtime

  • .env.example ships with QUEUE_CONNECTION=sync, which works on any host. Switch to database with a cron or php artisan queue:work if you want background jobs.
  • MAIL_MAILER=log writes mail to the log until you set up a real mailer.
  • BROADCAST_CONNECTION=log: live screens (tracking, dispatch, the live map) poll the realtime channel. Laravel Reverb settings are present if you want websockets.
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.