DEV3 Technologies home

DEV3 Developer Forum

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

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Payments

The default gateway is Simulated: checkout shows a test card page with Pay and Decline buttons and charges nothing. To take real subscription payments, open Settings → Payments, choose Stripe, PayPal or Razorpay, set the currency and keys (they are stored encrypted), and register the webhook https://your-domain/dev3/webhooks/payments/<gateway> in the gateway's dashboard. Renewals on real gateways are confirmed by that webhook. Test with sandbox or test-mode keys first: these drivers have not been run against live accounts.

Two-factor authentication

Every account can add a second sign-in step from its profile (avatar menu → Profile): an authenticator app (scan the QR code, then keep the 8 single-use recovery codes) or a 6-digit code by email, which needs working mail.

  • Staff: turn on Settings → Security → Require 2FA for staff to make platform admins and support set it up before they can use /admin.
  • Workspaces: 2FA is optional in /app; members turn it on themselves.
  • Lost access: a super admin clicks Reset 2FA on the user's row, or on the server run php artisan dev3:2fa-reset you@example.com. Resets and every change are written to the audit log.
  • Secrets are encrypted with APP_KEY, so if you change the key, reset 2FA for the affected users.
  • With DEMO_MODE=true, the one-click demo logins never ask for a code and 2FA can't be turned on.

Cron and queue

Add one cron entry that runs Laravel's scheduler every minute:

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

In cPanel choose Once per minute and use the full PHP path if needed. System → System health shows when the scheduler last ran. The scheduler starts each workspace's new credit period when its renewal date passes (promptly:renew-credits, hourly), runs queued jobs on hosts without a worker, and, only when DEMO_MODE=true, runs the nightly demo reset.

The queue is sync by default (document indexing runs inside the upload request; nothing to set up). For large documents or busy sites, set QUEUE_CONNECTION=database and run php artisan queue:work under Supervisor.

Mail

Until you set up mail, outgoing email is written to the log. Open Settings → Mail, choose SMTP and enter the host, port (587 for TLS or 465 for SSL), username, password and from address. Invitations, low-credit warnings, new-lead alerts, receipts and password resets all use it. In demo mode mail always goes to the log.

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.