File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,14 @@ class FlutterwaveController extends Controller
107107
108108 dd($data);
109109 }
110+ elseif ($status == 'cancelled'){
111+ //Put desired action/code after transaction has been cancelled here
112+ }
110113 else{
111- //Pass redirect for cancelled transaction here
114+ //Put desired action/code after transaction has failed here
112115 }
113116 // Get the transaction from your DB using the transaction reference (txref)
114117 // Check if you have previously given value for the transaction. If you have, redirect to your successpage else, continue
115- // Confirm that the $data['data']['status'] is 'successful'
116118 // Confirm that the currency on your db transaction is equal to the returned currency
117119 // Confirm that the db transaction amount is equal to the returned amount
118120 // Update the db transaction record (including parameters that didn't exist before the transaction is completed. for audit purpose)
You can’t perform that action at this time.
0 commit comments