We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a9658 commit 219b691Copy full SHA for 219b691
src/Rave.php
@@ -82,6 +82,22 @@ public function getTransactionIDFromCallback()
82
return $transactionID;
83
}
84
85
+ /**
86
+ * Reaches out to Flutterwave to validate a charge
87
+ * @param $data
88
+ * @return object
89
+ */
90
+ public function validateCharge(array $data)
91
+ {
92
+
93
+ $payment = Http::withToken($this->secretKey)->post(
94
+ $this->baseUrl . '/validate-charge',
95
+ $data
96
+ )->json();
97
98
+ return $payment;
99
+ }
100
101
/**
102
* Reaches out to Flutterwave to verify a transaction
103
* @param $id
0 commit comments