how to use Kashier E-wallets (Vodafone Cash - Orange Money - Meza Wallet - Etisalat Cash) payment gateway from nafezly payments
<?phpnamespaceApp\Http\Controllers;useIlluminate\Http\Request;useNafezly\Payments\Classes\KashierPayment;classPaymentControllerextendsController{publicfunctionpayWithKashier(Request $request){ $payment =newKashierPayment(); $response = $payment->setAmount($amount)->setSource('wallet')->pay(); dd($response);//output//[// 'payment_id'=>"", // refrence code that should stored in your orders table// 'redirect_url'=>"", // redirect url available for some payment gateways// 'html'=>"" // rendered html available for some payment gateways//] }publicfunctionverifyWithKashier(Request $request){ $payment =newKashierPayment(); $response = $payment->verify($request);dd($response);//output//[// 'success'=>true,//or false// 'payment_id'=>"PID",// 'message'=>"Done Successfully",//message for client// 'process_data'=>""//payment response//] }}