public function verify(Order $id, Request $request): RedirectResponse 	{ 		if ($id->isPayPalVerified()) { 			return redirect()->away(setting('corvus_cancel_url')); 		}  		$validator = Validator::make($request->all(), [ 			'token' => ['required', 'bail', 'string', 'max:50', new VerifyPayPalPayment($id)], 		]);  		if ($validator->fails()) { 			return redirect()->away(setting('corvus_cancel_url')); 		}  		$id->update([ 			'payment_id' => $request->query('token'), 			'status' => ORDER::STATUS_PAID, 			'order_number' => $id->createOrderNumber(), 			'payment_created_at' => formatTimestamp(), 		]);  		CreateInvoiceAndSendEmail::dispatch($id); 		// CreateOrderInErp::dispatch($id);  		return redirect()->away(setting('corvus_success_url') . '?order_id=' . $id->reference_number); 	}