From d7a3e053b636134a28d74b539328834ce723d238 Mon Sep 17 00:00:00 2001 From: ChiefSoft works Date: Sun, 15 May 2022 04:45:20 +0000 Subject: [PATCH] Environment agnostic service host name --- application/helpers/flutterwave_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/flutterwave_helper.php b/application/helpers/flutterwave_helper.php index 0983b5a..1ebb3c9 100644 --- a/application/helpers/flutterwave_helper.php +++ b/application/helpers/flutterwave_helper.php @@ -35,7 +35,7 @@ if ( ! function_exists('flutterwave_api')) "debit_currency" => "NGN" )); - curl_setopt($ch, CURLOPT_URL,"http://10.20.30.32:9086/create"); + curl_setopt($ch, CURLOPT_URL,"http://host.docker.internal:9086/create"); // curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));