From 0fb892d200cba084477dcf048eadcdc2e7b29d16 Mon Sep 17 00:00:00 2001 From: Akiode Timothy <36372628+Timbaron@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:07:57 +0100 Subject: [PATCH] Change verifyPayment to verifyTransaction The static method verifyPayment() does not exist, i tried implementing but all failed. I have to go through the vendor files and realized verifyPayent() didn't exist the saw verifyTransaction() which worked. --- docs/verification/webhook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/verification/webhook.md b/docs/verification/webhook.md index bea4074..6b6ca93 100644 --- a/docs/verification/webhook.md +++ b/docs/verification/webhook.md @@ -70,7 +70,7 @@ class FlutterwaveController extends Controller // if it is a charge event, verify and confirm it is a successful transaction if ($verified && $request->event == 'charge.completed' && $request->data->status == 'successful') { - $verificationData = Flutterwave::verifyPayment($request->data['id']); + $verificationData = Flutterwave::verifyTransaction($request->data['id']); if ($verificationData['status'] === 'success') { // process for successful charge