Cannot connect to CardConnect: 401 – Unauthorized
-
Based on CardConnect Documentations: https://developer.cardconnect.com/cardconnect-api#connecting-to-the-server
The connection to CardConnect should be encode username and password.
So I think the file includes/CardConnectRestClient.php should change the line 228 to:
$pest->curl_opts[CURLOPT_HTTPHEADER] = array(‘Authorization: Basic ‘ . base64_encode($this->username . “:” . $this->password),’Accept: application/json’,’Content-Type: application/json’);
Hope this help everyone to integrated with CardConnect.
Thanks.
Cuong Nguyen.https://www.ads-software.com/plugins/cardconnect-payment-module/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cannot connect to CardConnect: 401 – Unauthorized’ is closed to new replies.