Skip to content

Commit 55475b6

Browse files
authored
Updated Callback
1 parent 4d87e50 commit 55475b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/getting-started/payment-implementation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)