@@ -11,6 +11,20 @@ class Customer extends ApiResource
1111 use ApiOperations \Fetch;
1212 use ApiOperations \Update;
1313
14+ /**
15+ * @param $customerCode
16+ * @return array|object
17+ * @throws Exceptions\InvalidArgumentException
18+ * @throws Exceptions\IsNullException
19+ * @link https://paystack.com/docs/api/#customer-validate
20+ */
21+ public static function validate ($ customerCode )
22+ {
23+ $ url = static ::classUrl ().'/{$customerCode}/identification ' ;
24+
25+ return static ::staticRequest ('POST ' , $ url );
26+ }
27+
1428 /**
1529 * @param array $params containing the customer code of the customer to white/black list and
1630 * one can be one of the possible risk actions:
@@ -22,14 +36,14 @@ class Customer extends ApiResource
2236 *
2337 * @return array|object
2438 *
25- * @link https://developers. paystack.co/reference#whiteblacklist- customer
39+ * @link https://paystack.com/docs/api/# customer-whitelist-blacklist
2640 */
2741 public static function whiteOrBlackList ($ params )
2842 {
2943 self ::validateParams ($ params );
3044 $ url = static ::classUrl ().'/set_risk_action ' ;
3145
32- return static ::staticRequest ('post ' , $ url , $ params );
46+ return static ::staticRequest ('POST ' , $ url , $ params );
3347 }
3448
3549 /**
@@ -40,13 +54,13 @@ public static function whiteOrBlackList($params)
4054 *
4155 * @return array|object
4256 *
43- * @link https://developers. paystack.co/reference# deactivate-authorization
57+ * @link https://paystack.com/docs/api/#customer- deactivate-authorization
4458 */
4559 public static function deactivateAuthorization ($ params )
4660 {
4761 self ::validateParams ($ params );
4862 $ url = static ::classUrl ().'/deactivate_authorization ' ;
4963
50- return static ::staticRequest ('post ' , $ url , $ params , 'arr ' );
64+ return static ::staticRequest ('POST ' , $ url , $ params , 'arr ' );
5165 }
5266}
0 commit comments