public function generatePayLink(Order $order): string 	{ 		$response = $this->provider->createOrder([ 			'intent' => 'CAPTURE', 			'application_context' => [ 				'return_url' => route('api.webhooks.paypal.verify', ['id' => $order->id]), 				'cancel_url' => setting('corvus_cancel_url'), 			], 			'purchase_units' => [ 				0 => [ 					'amount' => [ 						'currency_code' => 'EUR', 						'value' => $this->convertToEur($order), 					], 				], 			], 		]);  		if (isset($response['id']) && $response['id'] != null) {            // redirect to approve href 			foreach ($response['links'] as $links) { 				if ($links['rel'] == 'approve') { 					return $links['href']; 				} 			} 		}  		throw new Exception('failed'); 	}