Strip Mini checkout to amount-only and use vendor email for Paystack.
Deploy Ladill Mini / deploy (push) Successful in 30s

Customers enter an amount and tap Pay; the merchant's account email (or notifications email from settings) is passed to Paystack instead of asking the payer for details.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 20:22:16 +00:00
co-authored by Cursor
parent 52065b1ac1
commit f0bf96b438
5 changed files with 36 additions and 52 deletions
@@ -17,6 +17,7 @@ class PaymentController extends Controller
public function pay(Request $request, string $shortCode): RedirectResponse
{
$qrCode = QrCode::query()
->with('user.qrSetting')
->where('short_code', $shortCode)
->where('type', QrCode::TYPE_PAYMENT)
->where('is_active', true)
@@ -24,10 +25,6 @@ class PaymentController extends Controller
$validated = $request->validate([
'amount' => 'required|numeric|min:0.01',
'payer_email' => 'required|email|max:255',
'payer_name' => 'nullable|string|max:120',
'payer_phone' => 'nullable|string|max:32',
'payer_note' => 'nullable|string|max:255',
]);
try {