Strip Mini checkout to amount-only and use vendor email for Paystack.
Deploy Ladill Mini / deploy (push) Successful in 30s
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user